Package io.micronaut.http.client
Class ProxyRequestOptions
- java.lang.Object
-
- io.micronaut.http.client.ProxyRequestOptions
-
public final class ProxyRequestOptions extends java.lang.ObjectFurther options forProxyHttpClientwhen handling proxy requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProxyRequestOptions.BuilderBuilder class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProxyRequestOptions.Builderbuilder()booleanequals(java.lang.Object o)static ProxyRequestOptionsgetDefault()inthashCode()booleanisRetainHostHeader()Iftrue, retain the host header from the given request.
-
-
-
Method Detail
-
builder
public static ProxyRequestOptions.Builder builder()
- Returns:
- A new options builder.
-
getDefault
public static ProxyRequestOptions getDefault()
- Returns:
- A default
ProxyRequestOptionsthat 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
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-