Package io.micronaut.http.client
Class ProxyRequestOptions.Builder
java.lang.Object
io.micronaut.http.client.ProxyRequestOptions.Builder
- Enclosing class:
- ProxyRequestOptions
Builder class.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an immutableProxyRequestOptions
with the options configured in this builder.Equivalent toretainHostHeader(boolean)
.retainHostHeader
(boolean retainHostHeader) Iftrue
, retain the host header from the given request.
-
Method Details
-
build
Build an immutableProxyRequestOptions
with the options configured in this builder.- Returns:
- The options
-
retainHostHeader
Iftrue
, retain the host header from the given request. Iffalse
, it will be recomputed based on the request URI (same behavior asProxyHttpClient.proxy(io.micronaut.http.HttpRequest)
).- Parameters:
retainHostHeader
- Whether to retain the host header from the proxy request instead of recomputing it based on URL.- Returns:
- This builder.
-
retainHostHeader
Equivalent toretainHostHeader(boolean)
.- Returns:
- This builder.
-