Package reactor.netty.http.client
Interface HttpClientRequest
- All Superinterfaces:
HttpClientInfos
,HttpInfos
An Http Reactive client metadata contract for outgoing requests. It inherits several
accessor related to HTTP flow : headers, params, URI, method, websocket...
- Author:
- Stephane Maldini, Simon Baslé
-
Method Summary
Modifier and TypeMethodDescriptionAdd an outbound cookie.addHeader
(CharSequence name, CharSequence value) Add an outbound http header, appending the value if the header is already set.header
(CharSequence name, CharSequence value) Set an outbound header, replacing any pre-existing value.headers
(HttpHeaders headers) Set outbound headers from the passed headers.boolean
Return true if redirected will be followed.responseTimeout
(Duration maxReadOperationInterval) Specifies the maximum duration allowed between each network-level read operation while reading a given response (resolution: ms).Methods inherited from interface reactor.netty.http.client.HttpClientInfos
currentContext, currentContextView, redirectedFrom, requestHeaders, resourceUrl
Methods inherited from interface reactor.netty.http.HttpInfos
cookies, fullPath, isKeepAlive, isWebsocket, method, path, requestId, uri, version
-
Method Details
-
addCookie
Add an outbound cookie.- Returns:
- this outbound
-
addHeader
Add an outbound http header, appending the value if the header is already set.- Parameters:
name
- header namevalue
- header value- Returns:
- this outbound
-
header
Set an outbound header, replacing any pre-existing value.- Parameters:
name
- headers keyvalue
- header value- Returns:
- this outbound
-
headers
Set outbound headers from the passed headers. It will however ignoreHOST
header key. Any pre-existing value for the passed headers will be replaced.- Parameters:
headers
- a netty headers map- Returns:
- this outbound
-
isFollowRedirect
boolean isFollowRedirect()Return true if redirected will be followed.- Returns:
- true if redirected will be followed
-
responseTimeout
Specifies the maximum duration allowed between each network-level read operation while reading a given response (resolution: ms). In other words,ReadTimeoutHandler
is added to the channel pipeline after sending the request and is removed when the response is fully received. If themaxReadOperationInterval
isnull
, any previous setting will be removed and nomaxReadOperationInterval
will be applied. If themaxReadOperationInterval
is less than1ms
, then1ms
will be themaxReadOperationInterval
. ThemaxReadOperationInterval
setting onHttpClientRequest
level overrides anymaxReadOperationInterval
setting onHttpClient
level.- Parameters:
maxReadOperationInterval
- the maximum duration allowed between each network-level read operations (resolution: ms).- Returns:
- this outbound
- Since:
- 0.9.11
- See Also:
-