public static final class ProxyRequestOptions.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ProxyRequestOptions |
build()
Build an immutable
ProxyRequestOptions with the options configured in this builder. |
ProxyRequestOptions.Builder |
retainHostHeader()
Equivalent to
retainHostHeader(boolean) . |
ProxyRequestOptions.Builder |
retainHostHeader(boolean retainHostHeader)
If
true , retain the host header from the given request. |
public ProxyRequestOptions build()
ProxyRequestOptions
with the options configured in this builder.public ProxyRequestOptions.Builder retainHostHeader(boolean retainHostHeader)
true
, retain the host header from the given request. If false
, it will be recomputed
based on the request URI (same behavior as ProxyHttpClient.proxy(io.micronaut.http.HttpRequest)
).retainHostHeader
- Whether to retain the host header from the proxy request instead of recomputing it
based on URL.public ProxyRequestOptions.Builder retainHostHeader()
retainHostHeader(boolean)
.