Class HttpRouteProtocol
Supported :scheme options for HTTP2.
Inheritance
System.Object
HttpRouteProtocol
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class HttpRouteProtocol : Enum
Syntax (vb)
Public NotInheritable Class HttpRouteProtocol
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
VirtualRouter router;
VirtualNode node;
router.AddRoute("route-http2", new RouteBaseProps {
RouteSpec = RouteSpec.Http2(new HttpRouteSpecOptions {
WeightedTargets = new [] { new WeightedTarget {
VirtualNode = node
} },
Match = new HttpRouteMatch {
Path = HttpRoutePathMatch.Exactly("/exact"),
Method = HttpRouteMethod.POST,
Protocol = HttpRouteProtocol.HTTPS,
Headers = new [] { HeaderMatch.ValueIs("Content-Type", "application/json"), HeaderMatch.ValueIsNot("Content-Type", "application/json") },
QueryParameters = new [] { QueryParameterMatch.ValueIs("query-field", "value") }
}
})
});
Synopsis
Fields
HTTP | Match HTTP requests. |
HTTPS | Match HTTPS requests. |
value__ |
Fields
HTTP
Match HTTP requests.
public const HttpRouteProtocol HTTP
Field Value
Type | Description |
---|---|
HttpRouteProtocol |
HTTPS
Match HTTPS requests.
public const HttpRouteProtocol HTTPS
Field Value
Type | Description |
---|---|
HttpRouteProtocol |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |