HttpRouteRouteActionResponse class

The specifications for routing traffic and applying associated policies.

Constructors

HttpRouteRouteActionResponse({required Input<HttpRouteCorsPolicyResponse> corsPolicy, required Input<List<HttpRouteDestinationResponse>> destinations, required Input<HttpRouteFaultInjectionPolicyResponse> faultInjectionPolicy, required Input<HttpRouteRedirectResponse> redirect, required Input<HttpRouteHeaderModifierResponse> requestHeaderModifier, required Input<HttpRouteRequestMirrorPolicyResponse> requestMirrorPolicy, required Input<HttpRouteHeaderModifierResponse> responseHeaderModifier, required Input<HttpRouteRetryPolicyResponse> retryPolicy, required Input<HttpRouteStatefulSessionAffinityPolicyResponse> statefulSessionAffinity, required Input<String> timeout, required Input<HttpRouteURLRewriteResponse> urlRewrite})
Creates a new HttpRouteRouteActionResponse. corsPolicy The specification for allowing client side cross-origin requests. destinations The destination to which traffic should be forwarded. faultInjectionPolicy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy redirect If set, the request is directed as configured by this field. requestHeaderModifier The specification for modifying the headers of a matching request prior to delivery of the request to the destination. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration. requestMirrorPolicy Specifies the policy on how requests intended for the routes destination are shadowed to a separate mirrored destination. Proxy will not wait for the shadow destination to respond before returning the response. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow. responseHeaderModifier The specification for modifying the headers of a response prior to sending the response back to the client. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration. retryPolicy Specifies the retry policy associated with this route. statefulSessionAffinity Optional. Specifies cookie-based stateful session affinity. timeout Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries. urlRewrite The specification for rewrite URL before forwarding requests to the destination.
const
HttpRouteRouteActionResponse.fromMap(Map<String, dynamic> map)
factory

Properties

corsPolicy → Input<HttpRouteCorsPolicyResponse>
The specification for allowing client side cross-origin requests.
final
destinations → Input<List<HttpRouteDestinationResponse>>
The destination to which traffic should be forwarded.
final
faultInjectionPolicy → Input<HttpRouteFaultInjectionPolicyResponse>
The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted for a percentage of requests. timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy
final
hashCode → int
The hash code for this object.
no setterinherited
redirect → Input<HttpRouteRedirectResponse>
If set, the request is directed as configured by this field.
final
requestHeaderModifier → Input<HttpRouteHeaderModifierResponse>
The specification for modifying the headers of a matching request prior to delivery of the request to the destination. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.
final
requestMirrorPolicy → Input<HttpRouteRequestMirrorPolicyResponse>
Specifies the policy on how requests intended for the routes destination are shadowed to a separate mirrored destination. Proxy will not wait for the shadow destination to respond before returning the response. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow.
final
responseHeaderModifier → Input<HttpRouteHeaderModifierResponse>
The specification for modifying the headers of a response prior to sending the response back to the client. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.
final
retryPolicy → Input<HttpRouteRetryPolicyResponse>
Specifies the retry policy associated with this route.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statefulSessionAffinity → Input<HttpRouteStatefulSessionAffinityPolicyResponse>
Optional. Specifies cookie-based stateful session affinity.
final
timeout → Input<String>
Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.
final
urlRewrite → Input<HttpRouteURLRewriteResponse>
The specification for rewrite URL before forwarding requests to the destination.
final

Methods

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

Operators

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