@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.555Z") @Stability(value=Stable) public interface HttpRouteMatch extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
VirtualRouter router;
VirtualNode node;
router.addRoute("route-http", RouteBaseProps.builder()
.routeSpec(RouteSpec.http(HttpRouteSpecOptions.builder()
.weightedTargets(List.of(WeightedTarget.builder()
.virtualNode(node)
.weight(50)
.build(), WeightedTarget.builder()
.virtualNode(node)
.weight(50)
.build()))
.match(HttpRouteMatch.builder()
.path(HttpRoutePathMatch.startsWith("/path-to-app"))
.build())
.build()))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpRouteMatch.Builder
A builder for
HttpRouteMatch |
static class |
HttpRouteMatch.Jsii$Proxy
An implementation for
HttpRouteMatch |
| Modifier and Type | Method and Description |
|---|---|
static HttpRouteMatch.Builder |
builder() |
default List<HeaderMatch> |
getHeaders()
Specifies the client request headers to match on.
|
default HttpRouteMethod |
getMethod()
The HTTP client request method to match on.
|
default HttpRoutePathMatch |
getPath()
Specifies how is the request matched based on the path part of its URL.
|
default HttpRouteProtocol |
getProtocol()
The client request protocol to match on.
|
default List<QueryParameterMatch> |
getQueryParameters()
The query parameters to match on.
|
@Stability(value=Stable) @Nullable default List<HeaderMatch> getHeaders()
All specified headers must match for the route to match.
Default: - do not match on headers
@Stability(value=Stable) @Nullable default HttpRouteMethod getMethod()
Default: - do not match on request method
@Stability(value=Stable) @Nullable default HttpRoutePathMatch getPath()
Default: - matches requests with all paths
@Stability(value=Stable) @Nullable default HttpRouteProtocol getProtocol()
Applicable only for HTTP2 routes.
Default: - do not match on HTTP2 request protocol
@Stability(value=Stable) @Nullable default List<QueryParameterMatch> getQueryParameters()
All specified query parameters must match for the route to match.
Default: - do not match on query parameters
@Stability(value=Stable) static HttpRouteMatch.Builder builder()
HttpRouteMatch.Builder of HttpRouteMatchCopyright © 2022. All rights reserved.