Package io.micronaut.http.client
Class ProxyRequestOptions
java.lang.Object
io.micronaut.http.client.ProxyRequestOptions
Further options for
ProxyHttpClient
when handling proxy requests.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyRequestOptions.Builder
builder()
boolean
static ProxyRequestOptions
int
hashCode()
boolean
Iftrue
, retain the host header from the given request.
-
Method Details
-
builder
- Returns:
- A new options builder.
-
getDefault
- Returns:
- A default
ProxyRequestOptions
that will behave the same way asProxyHttpClient.proxy(io.micronaut.http.HttpRequest)
-
isRetainHostHeader
public boolean isRetainHostHeader()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)
).- Returns:
- Whether to retain the host header from the proxy request instead of recomputing it based on URL.
-
equals
-
hashCode
public int hashCode()
-