HttpClient will connect to make a request.
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| public static final long | DEFAULT_CONNECT_TIMEOUT
The default connect timeout = |
| public static final boolean | DEFAULT_FOLLOW_REDIRECTS
Follow redirection by default = |
| public static final String | DEFAULT_HOST
The default value for host name = |
| public static final HttpMethod | DEFAULT_HTTP_METHOD
The default value for HTTP method = |
| public static final long | DEFAULT_IDLE_TIMEOUT
The default idle timeout = |
| public static final Integer | DEFAULT_PORT
The default value for port = |
| public static final ProxyOptions | DEFAULT_PROXY_OPTIONS
The default value for proxy options = |
| public static final SocketAddress | DEFAULT_SERVER
The default value for server method = |
| public static final Boolean | DEFAULT_SSL
The default value for SSL = |
| public static final long | DEFAULT_TIMEOUT
The default request timeout = |
| public static final String | DEFAULT_URI
The default request URI = |
| private boolean | |
| private MultiMap | |
| private String | |
| private long | |
| private HttpMethod | |
| private Integer | |
| private ProxyOptions | |
| private SocketAddress | |
| private Boolean | |
| private long | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | RequestOptions(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Create options from JSON |
| Modifier and Type | Method and Description |
|---|---|
| public RequestOptions | |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlythe header key key, CharSequence the header value value)Add a request header. |
| public RequestOptions | |
| private void | |
| public long | Returns: the amount of time after which, if the request is not obtained from the client within the timeout period, theFuture<HttpClientRequest> obtained from the client is failed with a java.
|
| public Boolean | |
| public MultiMap | |
| public String | |
| public long | Returns: the amount of time after which, if the request does not return any data within the timeout period, the request/response is closed and the related futures are failed with ajava.
|
| public HttpMethod | |
| public Integer | |
| public ProxyOptions | |
| public SocketAddress | |
| public long | |
| public String | |
| public String | |
| public Boolean | |
| private URL | |
| public RequestOptions | |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlythe header key key, CharSequence the header value value)Set a request header. |
| public RequestOptions | |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlythe header key key)Add a request header. |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlythe header key key)Add a request header. |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlythe uri to use absoluteURI)Parse an absolute URI to use, this will update the |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlythe uri to use url)Like |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlythe amount of time in milliseconds. timeout)Sets the amount of time after which, if the request is not obtained from the client within the timeout period,
the |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlywhether to follow redirect followRedirects)Set whether to follow HTTP redirect |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlythe headers headers)Set request headers from a multi-map. |
| public RequestOptions | |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlythe amount of time in milliseconds. timeout)Sets the amount of time after which, if the request does not return any data within the timeout period,
the request/response is closed and the related futures are failed with a |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlySet the HTTP method to be used by the client request. |
| public RequestOptions | |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlyproxy options override object proxyOptions)Override the |
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlySet the server address to be used by the client request. |
| public RequestOptions | |
| public RequestOptions | setTimeout(long timeout)
Sets both connect and idle timeouts for the request
|
| public RequestOptions | Returns: a reference to this, so the API can be used fluentlythe override op)Override the operation the tracer use for this request. |
| public RequestOptions | |
| public JsonObject | toJson()
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| connectTimeout | back to summary |
|---|---|
| private long connectTimeout | |
| DEFAULT_CONNECT_TIMEOUT | back to summary |
|---|---|
| public static final long DEFAULT_CONNECT_TIMEOUT The default connect timeout = | |
| DEFAULT_FOLLOW_REDIRECTS | back to summary |
|---|---|
| public static final boolean DEFAULT_FOLLOW_REDIRECTS Follow redirection by default = | |
| DEFAULT_HOST | back to summary |
|---|---|
| public static final String DEFAULT_HOST The default value for host name = | |
| DEFAULT_HTTP_METHOD | back to summary |
|---|---|
| public static final HttpMethod DEFAULT_HTTP_METHOD The default value for HTTP method = | |
| DEFAULT_IDLE_TIMEOUT | back to summary |
|---|---|
| public static final long DEFAULT_IDLE_TIMEOUT The default idle timeout = | |
| DEFAULT_PORT | back to summary |
|---|---|
| public static final Integer DEFAULT_PORT The default value for port = | |
| DEFAULT_PROXY_OPTIONS | back to summary |
|---|---|
| public static final ProxyOptions DEFAULT_PROXY_OPTIONS The default value for proxy options = | |
| DEFAULT_SERVER | back to summary |
|---|---|
| public static final SocketAddress DEFAULT_SERVER The default value for server method = | |
| DEFAULT_SSL | back to summary |
|---|---|
| public static final Boolean DEFAULT_SSL The default value for SSL = | |
| DEFAULT_TIMEOUT | back to summary |
|---|---|
| public static final long DEFAULT_TIMEOUT The default request timeout = | |
| DEFAULT_URI | back to summary |
|---|---|
| public static final String DEFAULT_URI The default request URI = | |
| followRedirects | back to summary |
|---|---|
| private boolean followRedirects | |
| headers | back to summary |
|---|---|
| private MultiMap headers | |
| host | back to summary |
|---|---|
| private String host | |
| idleTimeout | back to summary |
|---|---|
| private long idleTimeout | |
| method | back to summary |
|---|---|
| private HttpMethod method | |
| port | back to summary |
|---|---|
| private Integer port | |
| proxyOptions | back to summary |
|---|---|
| private ProxyOptions proxyOptions | |
| server | back to summary |
|---|---|
| private SocketAddress server | |
| ssl | back to summary |
|---|---|
| private Boolean ssl | |
| timeout | back to summary |
|---|---|
| private long timeout | |
| traceOperation | back to summary |
|---|---|
| private String traceOperation | |
| uri | back to summary |
|---|---|
| private String uri | |
| RequestOptions | back to summary |
|---|---|
| public RequestOptions() Default constructor | |
| RequestOptions | back to summary |
|---|---|
| public RequestOptions(RequestOptions other) Copy constructor
| |
| RequestOptions | back to summary |
|---|---|
| public RequestOptions(JsonObject json)
References Deprecated
See corresponding docs for further information. Create options from JSON
| |
| addHeader | back to summary |
|---|---|
| public RequestOptions addHeader(String key, String value) Add a request header.
| |
| addHeader | back to summary |
|---|---|
| public RequestOptions addHeader(CharSequence key, CharSequence value) Add a request header.
| |
| addHeader | back to summary |
|---|---|
public RequestOptions addHeader(CharSequence key, Iterable<CharSequence> values)
| |
| checkHeaders | back to summary |
|---|---|
| private void checkHeaders() | |
| getConnectTimeout | back to summary |
|---|---|
public long getConnectTimeout()
| |
| getFollowRedirects | back to summary |
|---|---|
public Boolean getFollowRedirects()
| |
| getHeaders | back to summary |
|---|---|
| public MultiMap getHeaders() Get the request headers
| |
| getHost | back to summary |
|---|---|
| public String getHost() Get the host name to be used by the client request.
| |
| getIdleTimeout | back to summary |
|---|---|
public long getIdleTimeout()
| |
| getMethod | back to summary |
|---|---|
| public HttpMethod getMethod() Get the HTTP method to be used by the client request.
| |
| getPort | back to summary |
|---|---|
| public Integer getPort() Get the port to be used by the client request.
| |
| getProxyOptions | back to summary |
|---|---|
| public ProxyOptions getProxyOptions() Get the proxy options override for connections
| |
| getServer | back to summary |
|---|---|
| public SocketAddress getServer() Get the server address to be used by the client request.
| |
| getTimeout | back to summary |
|---|---|
public long getTimeout()
| |
| getTraceOperation | back to summary |
|---|---|
public String getTraceOperation()
| |
| getURI | back to summary |
|---|---|
public String getURI()
| |
| isSsl | back to summary |
|---|---|
public Boolean isSsl()
| |
| parseUrl | back to summary |
|---|---|
| private URL parseUrl(String surl) | |
| putHeader | back to summary |
|---|---|
| public RequestOptions putHeader(String key, String value) Set a request header.
| |
| putHeader | back to summary |
|---|---|
| public RequestOptions putHeader(CharSequence key, CharSequence value) Set a request header.
| |
| putHeader | back to summary |
|---|---|
public RequestOptions putHeader(CharSequence key, Iterable<CharSequence> values)
| |
| removeHeader | back to summary |
|---|---|
| public RequestOptions removeHeader(String key) Add a request header.
| |
| removeHeader | back to summary |
|---|---|
| public RequestOptions removeHeader(CharSequence key) Add a request header.
| |
| setAbsoluteURI | back to summary |
|---|---|
| public RequestOptions setAbsoluteURI(String absoluteURI) Parse an absolute URI to use, this will update the
| |
| setAbsoluteURI | back to summary |
|---|---|
| public RequestOptions setAbsoluteURI(URL url) Like
| |
| setConnectTimeout | back to summary |
|---|---|
| public RequestOptions setConnectTimeout(long timeout) Sets the amount of time after which, if the request is not obtained from the client within the timeout period,
the
| |
| setFollowRedirects | back to summary |
|---|---|
| public RequestOptions setFollowRedirects(Boolean followRedirects) Set whether to follow HTTP redirect
| |
| setHeaders | back to summary |
|---|---|
| public RequestOptions setHeaders(MultiMap headers) Set request headers from a multi-map.
| |
| setHost | back to summary |
|---|---|
| public RequestOptions setHost(String host) Set the host name to be used by the client request.
| |
| setIdleTimeout | back to summary |
|---|---|
| public RequestOptions setIdleTimeout(long timeout) Sets the amount of time after which, if the request does not return any data within the timeout period,
the request/response is closed and the related futures are failed with a The timeout starts after a connection is obtained from the client, similar to calling
| |
| setMethod | back to summary |
|---|---|
| public RequestOptions setMethod(HttpMethod method) Set the HTTP method to be used by the client request.
| |
| setPort | back to summary |
|---|---|
| public RequestOptions setPort(Integer port) Set the port to be used by the client request.
| |
| setProxyOptions | back to summary |
|---|---|
| public RequestOptions setProxyOptions(ProxyOptions proxyOptions) Override the
| |
| setServer | back to summary |
|---|---|
| public RequestOptions setServer(SocketAddress server) Set the server address to be used by the client request. When the server address is Use this when you want to connect to a specific server address without name resolution.
| |
| setSsl | back to summary |
|---|---|
| public RequestOptions setSsl(Boolean ssl) Set whether SSL/TLS is enabled.
| |
| setTimeout | back to summary |
|---|---|
| public RequestOptions setTimeout(long timeout) Sets both connect and idle timeouts for the request
setConnectTimeout(long) and setIdleTimeout(long)
| |
| setTraceOperation | back to summary |
|---|---|
| public RequestOptions setTraceOperation(String op) Override the operation the tracer use for this request. When no operation is set, the HTTP method is used instead.
| |
| setURI | back to summary |
|---|---|
| public RequestOptions setURI(String uri) Set the request relative URI.
| |
| toJson | back to summary |
|---|---|
| public JsonObject toJson()
References Deprecated
See corresponding docs for further information. | |