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 timeout)
Specifies the response timeout duration in milliseconds.
|
currentContext, redirectedFrom, requestHeaders, resourceUrl
cookies, fullPath, isKeepAlive, isWebsocket, method, path, 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 timeout)
timeout
is null
, any previous setting will be removed and no response timeout
will be applied.
If the timeout
is less than 1ms
, then 1ms
will be the response timeout.
The response timeout setting on HttpClientRequest
level overrides any response timeout
setting on HttpClient
level.timeout
- the response timeout duration