Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace HttpVirtualServiceTrafficRouteRule

Rule for routing incoming Virtual Service traffic with HTTP protocol

Properties

destinations

The destination of the request.

Optional isGrpc

isGrpc: undefined | false | true

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

Optional path

path: undefined | string

Route to match

Optional pathType

pathType: PathType

Match type for the route

Optional requestTimeoutInMs

requestTimeoutInMs: undefined | number

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. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Const type

type: string = "HTTP"

Methods

getDeserializedJsonObj

getJsonObj