Package io.micronaut.http.client
Class ProxyRequestOptions.Builder
- java.lang.Object
-
- io.micronaut.http.client.ProxyRequestOptions.Builder
-
- Enclosing class:
- ProxyRequestOptions
public static final class ProxyRequestOptions.Builder extends java.lang.ObjectBuilder class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProxyRequestOptionsbuild()Build an immutableProxyRequestOptionswith the options configured in this builder.ProxyRequestOptions.BuilderretainHostHeader()Equivalent toretainHostHeader(boolean).ProxyRequestOptions.BuilderretainHostHeader(boolean retainHostHeader)Iftrue, retain the host header from the given request.
-
-
-
Method Detail
-
build
public ProxyRequestOptions build()
Build an immutableProxyRequestOptionswith the options configured in this builder.- Returns:
- The options
-
retainHostHeader
public ProxyRequestOptions.Builder retainHostHeader(boolean 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
public ProxyRequestOptions.Builder retainHostHeader()
Equivalent toretainHostHeader(boolean).- Returns:
- This builder.
-
-