@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.555Z") @Stability(value=Stable) public enum HttpRouteMethod extends Enum<HttpRouteMethod>
Example:
// Example automatically generated from non-compiling source. May contain errors.
VirtualRouter router;
VirtualNode node;
router.addRoute("route-http2", RouteBaseProps.builder()
.routeSpec(RouteSpec.http2(HttpRouteSpecOptions.builder()
.weightedTargets(List.of(WeightedTarget.builder()
.virtualNode(node)
.build()))
.match(HttpRouteMatch.builder()
.path(HttpRoutePathMatch.exactly("/exact"))
.method(HttpRouteMethod.POST)
.protocol(HttpRouteProtocol.HTTPS)
.headers(List.of(HeaderMatch.valueIs("Content-Type", "application/json"), HeaderMatch.valueIsNot("Content-Type", "application/json")))
.queryParameters(List.of(QueryParameterMatch.valueIs("query-field", "value")))
.build())
.build()))
.build());
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpRouteMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpRouteMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final HttpRouteMethod GET
@Stability(value=Stable) public static final HttpRouteMethod HEAD
@Stability(value=Stable) public static final HttpRouteMethod POST
@Stability(value=Stable) public static final HttpRouteMethod PUT
@Stability(value=Stable) public static final HttpRouteMethod DELETE
@Stability(value=Stable) public static final HttpRouteMethod CONNECT
@Stability(value=Stable) public static final HttpRouteMethod OPTIONS
@Stability(value=Stable) public static final HttpRouteMethod TRACE
@Stability(value=Stable) public static final HttpRouteMethod PATCH
public static HttpRouteMethod[] values()
for (HttpRouteMethod c : HttpRouteMethod.values()) System.out.println(c);
public static HttpRouteMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.