HttpRouteAction class

Constructors

HttpRouteAction({CorsPolicy? corsPolicy, HttpFaultInjection? faultInjectionPolicy, Duration? maxStreamDuration, RequestMirrorPolicy? requestMirrorPolicy, HttpRetryPolicy? retryPolicy, Duration? timeout, UrlRewrite? urlRewrite, List<WeightedBackendService>? weightedBackendServices})
HttpRouteAction.fromJson(Map json_)

Properties

corsPolicy CorsPolicy?
The specification for allowing client-side cross-origin requests.
getter/setter pair
faultInjectionPolicy HttpFaultInjection?
The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxStreamDuration Duration?
Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout field where the timeout duration starts from the time the request has been fully processed (known asend-of-stream), the duration in this field is computed from the beginning of the stream until the response has been processed, including all retries.
getter/setter pair
requestMirrorPolicy RequestMirrorPolicy?
Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service.
getter/setter pair
retryPolicy HttpRetryPolicy?
Specifies the retry policy associated with this route.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration?
Specifies the timeout for the selected route.
getter/setter pair
urlRewrite UrlRewrite?
The spec to modify the URL of the request, before forwarding the request to the matched service.
getter/setter pair
weightedBackendServices List<WeightedBackendService>?
A list of weighted backend services to send traffic to when a route match occurs.
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