HttpClientRequest that is used as a place-holder for
HTTP requests when their execution fails and a HttpClientRequest instance
cannot be created.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ContextView | |
| pack-priv final ClientCookieDecoder | |
| pack-priv static final String[] | |
| pack-priv final HttpHeaders | |
| pack-priv final boolean | |
| pack-priv final HttpMethod | |
| pack-priv final String | |
| pack-priv final Duration | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public HttpClientRequest | addCookie(Cookie cookie)
Implements reactor. |
| public HttpClientRequest | addHeader(CharSequence
header name name, CharSequence header value value)Implements reactor. |
| public Map | |
| public Context | currentContext()
Implements reactor. Context associated with the Mono/Flux exposed
via HttpClient. or related terminating API.
|
| public ContextView | currentContextView()
Implements reactor. ContextView associated with the Mono/Flux exposed
via HttpClient. or related terminating API.
|
| public String | fullPath()
Implements reactor. uri().
|
| public HttpClientRequest | header(CharSequence
headers key name, CharSequence header value value)Implements reactor. |
| public HttpClientRequest | headers(HttpHeaders
a netty headers map headers)Implements reactor. |
| public boolean | isFollowRedirect()
Implements reactor. |
| public boolean | |
| public boolean | isWebsocket()
Implements reactor. |
| public HttpMethod | method()
Implements reactor. |
| public String[] | redirectedFrom()
Implements reactor. |
| public HttpHeaders | requestHeaders()
Implements reactor. |
| public String | |
| public String | resourceUrl()
Implements reactor. |
| public HttpClientRequest | responseTimeout(Duration
the maximum duration allowed between each network-level read operations
(resolution: ms). maxReadOperationInterval)Implements reactor. |
| public String | |
| public HttpVersion | version()
Implements reactor. |
| contextView | back to summary |
|---|---|
| pack-priv final ContextView contextView | |
| cookieDecoder | back to summary |
|---|---|
| pack-priv final ClientCookieDecoder cookieDecoder | |
| EMPTY | back to summary |
|---|---|
| pack-priv static final String[] EMPTY | |
| headers | back to summary |
|---|---|
| pack-priv final HttpHeaders headers | |
| isWebsocket | back to summary |
|---|---|
| pack-priv final boolean isWebsocket | |
| method | back to summary |
|---|---|
| pack-priv final HttpMethod method | |
| path | back to summary |
|---|---|
| pack-priv final String path | |
| responseTimeout | back to summary |
|---|---|
| pack-priv final Duration responseTimeout | |
| uri | back to summary |
|---|---|
| pack-priv final String uri | |
| FailedHttpClientRequest | back to summary |
|---|---|
| pack-priv FailedHttpClientRequest(ContextView contextView, HttpClientConfig c) | |
| addCookie | back to summary |
|---|---|
| public HttpClientRequest addCookie(Cookie cookie) Implements reactor. Doc from reactor. Add an outbound cookie.
| |
| addHeader | back to summary |
|---|---|
| public HttpClientRequest addHeader(CharSequence name, CharSequence value) Implements reactor. Doc from reactor. Add an outbound http header, appending the value if the header is already set.
| |
| cookies | back to summary |
|---|---|
| public Map Implements reactor. Doc from reactor. Returns resolved HTTP cookies.
| |
| currentContext | back to summary |
|---|---|
| public Context currentContext() Implements reactor. Doc from reactor. Return the current
| |
| currentContextView | back to summary |
|---|---|
| public ContextView currentContextView() Implements reactor. Doc from reactor. Return the current
| |
| fullPath | back to summary |
|---|---|
| public String fullPath() Implements reactor. Doc from reactor. Returns the decoded path portion from the | |
| header | back to summary |
|---|---|
| public HttpClientRequest header(CharSequence name, CharSequence value) Implements reactor. Doc from reactor. Set an outbound header, replacing any pre-existing value.
| |
| headers | back to summary |
|---|---|
| public HttpClientRequest headers(HttpHeaders headers) Implements reactor. Doc from reactor. Set outbound headers from the passed headers. It will however ignore
| |
| isFollowRedirect | back to summary |
|---|---|
| public boolean isFollowRedirect() Implements reactor. Doc from reactor. Return true if redirected will be followed.
| |
| isKeepAlive | back to summary |
|---|---|
| public boolean isKeepAlive() Implements reactor. Doc from reactor. Is the request keep alive.
| |
| isWebsocket | back to summary |
|---|---|
| public boolean isWebsocket() Implements reactor. Doc from reactor. Returns true if websocket connection (upgraded).
| |
| method | back to summary |
|---|---|
| public HttpMethod method() Implements reactor. Doc from reactor. Returns the resolved request method (HTTP 1.1 etc.).
| |
| redirectedFrom | back to summary |
|---|---|
| public String[] redirectedFrom() Implements reactor. Doc from reactor. Return the previous redirections or empty array. | |
| requestHeaders | back to summary |
|---|---|
| public HttpHeaders requestHeaders() Implements reactor. Doc from reactor. Return outbound headers to be sent.
| |
| requestId | back to summary |
|---|---|
| public String requestId() Implements reactor. Doc from reactor. Return a unique id for the request. The id is a combination of the id of the underlying connection and the serial number of the request received on that connection. Format of the id:
Example:
| |
| resourceUrl | back to summary |
|---|---|
| public String resourceUrl() Implements reactor. Doc from reactor. Return the fully qualified URL of the requested resource. In case of redirects, return the URL the last redirect led to. | |
| responseTimeout | back to summary |
|---|---|
| public HttpClientRequest responseTimeout(Duration maxReadOperationInterval) Implements reactor. Doc from reactor. Specifies the maximum duration allowed between each network-level read operation while reading a given response
(resolution: ms). In other words,
| |
| uri | back to summary |
|---|---|
| public String uri() Implements reactor. Doc from reactor. Returns the resolved target address. | |
| version | back to summary |
|---|---|
| public HttpVersion version() Implements reactor. Doc from reactor. Returns the resolved request version (HTTP 1.1 etc).
| |