Upstream class

Constructors

Upstream({List<Backend> backends = const [], String? id, bool? passHostHeader})
Returns a new Upstream instance.

Properties

backends ↔ List<Backend>
Backends are the upstream servers to balance across: 1..32 of them.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID identifies the pool within the org: A-Za-z0-9-_., at most 128 chars. A create that omits it gets a generated one. Routes reference it by this id.
getter/setter pair
passHostHeader ↔ bool?
PassHostHeader forwards the client's original Host header upstream instead of rewriting it to the backend's.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Upstream?
Returns a new Upstream instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Upstream>
mapFromJson(dynamic json) → Map<String, Upstream>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Upstream>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.