public static interface HttpRouteMatch.Builder extends SdkPojo, CopyableBuilder<HttpRouteMatch.Builder,HttpRouteMatch>
| Modifier and Type | Method and Description |
|---|---|
HttpRouteMatch.Builder |
headers(Collection<HttpRouteHeader> headers)
The client request headers to match on.
|
HttpRouteMatch.Builder |
headers(Consumer<HttpRouteHeader.Builder>... headers)
The client request headers to match on.
|
HttpRouteMatch.Builder |
headers(HttpRouteHeader... headers)
The client request headers to match on.
|
HttpRouteMatch.Builder |
method(HttpMethod method)
The client request method to match on.
|
HttpRouteMatch.Builder |
method(String method)
The client request method to match on.
|
default HttpRouteMatch.Builder |
path(Consumer<HttpPathMatch.Builder> path)
The client request path to match on.
|
HttpRouteMatch.Builder |
path(HttpPathMatch path)
The client request path to match on.
|
HttpRouteMatch.Builder |
prefix(String prefix)
Specifies the path to match requests with.
|
HttpRouteMatch.Builder |
queryParameters(Collection<HttpQueryParameter> queryParameters)
The client request query parameters to match on.
|
HttpRouteMatch.Builder |
queryParameters(Consumer<HttpQueryParameter.Builder>... queryParameters)
The client request query parameters to match on.
|
HttpRouteMatch.Builder |
queryParameters(HttpQueryParameter... queryParameters)
The client request query parameters to match on.
|
HttpRouteMatch.Builder |
scheme(HttpScheme scheme)
The client request scheme to match on.
|
HttpRouteMatch.Builder |
scheme(String scheme)
The client request scheme to match on.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHttpRouteMatch.Builder headers(Collection<HttpRouteHeader> headers)
The client request headers to match on.
headers - The client request headers to match on.HttpRouteMatch.Builder headers(HttpRouteHeader... headers)
The client request headers to match on.
headers - The client request headers to match on.HttpRouteMatch.Builder headers(Consumer<HttpRouteHeader.Builder>... headers)
The client request headers to match on.
This is a convenience that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #headers(List) .headers - a consumer that will call methods on List.Builder #headers(List) HttpRouteMatch.Builder method(String method)
The client request method to match on. Specify only one.
method - The client request method to match on. Specify only one.HttpMethod,
HttpMethodHttpRouteMatch.Builder method(HttpMethod method)
The client request method to match on. Specify only one.
method - The client request method to match on. Specify only one.HttpMethod,
HttpMethodHttpRouteMatch.Builder path(HttpPathMatch path)
The client request path to match on.
path - The client request path to match on.default HttpRouteMatch.Builder path(Consumer<HttpPathMatch.Builder> path)
The client request path to match on.
This is a convenience that creates an instance of theHttpPathMatch.Builder avoiding the need to
create one manually via HttpPathMatch.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to path(HttpPathMatch).path - a consumer that will call methods on HttpPathMatch.Builderpath(HttpPathMatch)HttpRouteMatch.Builder prefix(String prefix)
Specifies the path to match requests with. This parameter must always start with /, which by
itself matches all requests to the virtual service name. You can also match for path-based routing of
requests. For example, if your virtual service name is my-service.local and you want the route
to match requests to my-service.local/metrics, your prefix should be /metrics.
prefix - Specifies the path to match requests with. This parameter must always start with /, which
by itself matches all requests to the virtual service name. You can also match for path-based routing
of requests. For example, if your virtual service name is my-service.local and you want
the route to match requests to my-service.local/metrics, your prefix should be
/metrics.HttpRouteMatch.Builder queryParameters(Collection<HttpQueryParameter> queryParameters)
The client request query parameters to match on.
queryParameters - The client request query parameters to match on.HttpRouteMatch.Builder queryParameters(HttpQueryParameter... queryParameters)
The client request query parameters to match on.
queryParameters - The client request query parameters to match on.HttpRouteMatch.Builder queryParameters(Consumer<HttpQueryParameter.Builder>... queryParameters)
The client request query parameters to match on.
This is a convenience that creates an instance of theList.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #queryParameters(List) .queryParameters - a consumer that will call methods on List.Builder #queryParameters(List) HttpRouteMatch.Builder scheme(String scheme)
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
scheme - The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.HttpScheme,
HttpSchemeHttpRouteMatch.Builder scheme(HttpScheme scheme)
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
scheme - The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.HttpScheme,
HttpSchemeCopyright © 2021. All rights reserved.