public static interface HttpRouteMatch.Builder extends SdkPojo, CopyableBuilder<HttpRouteMatch.Builder,HttpRouteMatch>
| Modifier and Type | Method and Description |
|---|---|
HttpRouteMatch.Builder |
headers(Collection<HttpRouteHeader> headers)
An object that represents the client request headers to match on.
|
HttpRouteMatch.Builder |
headers(Consumer<HttpRouteHeader.Builder>... headers)
An object that represents the client request headers to match on.
|
HttpRouteMatch.Builder |
headers(HttpRouteHeader... headers)
An object that represents 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.
|
HttpRouteMatch.Builder |
prefix(String prefix)
Specifies the path to match requests with.
|
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)
An object that represents the client request headers to match on.
headers - An object that represents the client request headers to match on.HttpRouteMatch.Builder headers(HttpRouteHeader... headers)
An object that represents the client request headers to match on.
headers - An object that represents the client request headers to match on.HttpRouteMatch.Builder headers(Consumer<HttpRouteHeader.Builder>... headers)
An object that represents 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 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 scheme(String scheme)
The client request scheme to match on. Specify only one.
scheme - The client request scheme to match on. Specify only one.HttpScheme,
HttpSchemeHttpRouteMatch.Builder scheme(HttpScheme scheme)
The client request scheme to match on. Specify only one.
scheme - The client request scheme to match on. Specify only one.HttpScheme,
HttpSchemeCopyright © 2021. All rights reserved.