Show / Hide Table of Contents

Class HttpVirtualServiceTrafficRouteRule

Rule for routing incoming Virtual Service traffic with HTTP protocol

Inheritance
object
VirtualServiceTrafficRouteRule
HttpVirtualServiceTrafficRouteRule
Inherited Members
VirtualServiceTrafficRouteRule.Destinations
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ServicemeshService.Models
Assembly: OCI.DotNetSDK.Servicemesh.dll
Syntax
public class HttpVirtualServiceTrafficRouteRule : VirtualServiceTrafficRouteRule

Properties

IsGrpc

Declaration
[JsonProperty(PropertyName = "isGrpc")]
public bool? IsGrpc { get; set; }
Property Value
Type Description
bool?

If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.

Path

Declaration
[JsonProperty(PropertyName = "path")]
public string Path { get; set; }
Property Value
Type Description
string

Route to match

PathType

Declaration
[JsonProperty(PropertyName = "pathType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public HttpVirtualServiceTrafficRouteRule.PathTypeEnum? PathType { get; set; }
Property Value
Type Description
HttpVirtualServiceTrafficRouteRule.PathTypeEnum?

Match type for the route

RequestTimeoutInMs

Declaration
[JsonProperty(PropertyName = "requestTimeoutInMs")]
public long? RequestTimeoutInMs { get; set; }
Property Value
Type Description
long?

The maximum duration in milliseconds for the target service to respond to a request. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP based route rules, and disabled (no timeout) when 'isGrpc' is true. The value 0 (zero) indicates that the timeout is disabled. For streaming responses from the target service, consider either keeping the timeout disabled or set a sufficiently high value.

In this article
Back to top