Class HttpRouteMethod
Supported values for matching routes based on the HTTP request method.
Inheritance
System.Object
HttpRouteMethod
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class HttpRouteMethod : Enum
Syntax (vb)
Public NotInheritable Class HttpRouteMethod
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
CONNECT | CONNECT request. |
DELETE | DELETE request. |
GET | GET request. |
HEAD | HEAD request. |
OPTIONS | OPTIONS request. |
PATCH | PATCH request. |
POST | POST request. |
PUT | PUT request. |
TRACE | TRACE request. |
value__ |
Fields
CONNECT
DELETE
GET
HEAD
OPTIONS
PATCH
POST
PUT
TRACE
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |