java.lang.Object
io.vertx.core.http.ClientRedirectConfig
HTTP client HTTP redirect config.
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintsetCrossOriginBlockedHeaders(Set<String> crossOriginBlockedHeaders) Update the set of blocked HTTP headers on a cross-origin redirection.setMaxRedirects(int maxRedirects) Set tomaxRedirectsthe maximum number of redirection a request can follow.setSameOriginBlockedHeaders(Set<String> sameOriginBlockedHeaders) Update the set of blocked HTTP headers on a same-origin redirection.
-
Constructor Details
-
ClientRedirectConfig
public ClientRedirectConfig() -
ClientRedirectConfig
-
-
Method Details
-
getMaxRedirects
public int getMaxRedirects()- Returns:
- the maximum number of redirection a request can follow
-
setMaxRedirects
Set tomaxRedirectsthe maximum number of redirection a request can follow.- Parameters:
maxRedirects- the maximum number of redirection- Returns:
- a reference to this, so the API can be used fluently
-
getSameOriginBlockedHeaders
- Returns:
- the set of blocked HTTP headers on a same-origin redirection, the default being
HttpClientOptions.DEFAULT_SAME_ORIGIN_REDIRECT_BLOCKED_HEADERS
-
setSameOriginBlockedHeaders
Update the set of blocked HTTP headers on a same-origin redirection.- Parameters:
sameOriginBlockedHeaders- the new set of headers to block- Returns:
- a reference to this, so the API can be used fluently
-
getCrossOriginBlockedHeaders
- Returns:
- the set of blocked HTTP headers on a cross-origin redirection, the default being
HttpClientOptions.DEFAULT_CROSS_ORIGIN_REDIRECT_BLOCKED_HEADERS
-
setCrossOriginBlockedHeaders
Update the set of blocked HTTP headers on a cross-origin redirection.- Parameters:
crossOriginBlockedHeaders- the new set of headers to block- Returns:
- a reference to this, so the API can be used fluently
-