WeightedBackendService class

In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple backend services.

The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService

Constructors

WeightedBackendService({String? backendService, HttpHeaderAction? headerAction, int? weight})
WeightedBackendService.fromJson(Map json_)

Properties

backendService String?
The full or partial URL to the default BackendService resource.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headerAction HttpHeaderAction?
Specifies changes to request and response headers that need to take effect for the selected backendService.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weight int?
Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) .
getter/setter pair

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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited