public interface HttpClientRequest extends HttpClientInfos
Modifier and Type | Method and Description |
---|---|
HttpClientRequest |
addCookie(Cookie cookie)
Add an outbound cookie
|
HttpClientRequest |
addHeader(CharSequence name,
CharSequence value)
Add an outbound http header, appending the value if the header is already set.
|
HttpClientRequest |
header(CharSequence name,
CharSequence value)
Set an outbound header, replacing any pre-existing value.
|
HttpClientRequest |
headers(HttpHeaders headers)
Set outbound headers from the passed headers.
|
boolean |
isFollowRedirect()
Return true if redirected will be followed
|
HttpClientRequest |
responseTimeout(java.time.Duration maxReadOperationInterval)
Specifies the maximum duration allowed between each network-level read operation while reading a given response
(resolution: ms).
|
currentContext, currentContextView, redirectedFrom, requestHeaders, resourceUrl
cookies, fullPath, isKeepAlive, isWebsocket, method, path, requestId, uri, version
HttpClientRequest addCookie(Cookie cookie)
HttpClientRequest addHeader(CharSequence name, CharSequence value)
name
- header namevalue
- header valueHttpClientRequest header(CharSequence name, CharSequence value)
name
- headers keyvalue
- header valueHttpClientRequest headers(HttpHeaders headers)
HOST
header key. Any pre-existing value for the passed headers will be replaced.headers
- a netty headers mapboolean isFollowRedirect()
HttpClientRequest responseTimeout(java.time.Duration maxReadOperationInterval)
ReadTimeoutHandler
is added to the channel
pipeline after sending the request and is removed when the response is fully received.
If the maxReadOperationInterval
is null
, any previous setting will be removed and no
maxReadOperationInterval
will be applied.
If the maxReadOperationInterval
is less than 1ms
, then 1ms
will be the
maxReadOperationInterval
.
The maxReadOperationInterval
setting on HttpClientRequest
level overrides any
maxReadOperationInterval
setting on HttpClient
level.maxReadOperationInterval
- the maximum duration allowed between each network-level read operations
(resolution: ms).ReadTimeoutHandler