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.booleanReturn 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, resourceUrlMethods 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 ignoreHOSTheader 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,ReadTimeoutHandleris added to the channel pipeline after sending the request and is removed when the response is fully received. If themaxReadOperationIntervalisnull, any previous setting will be removed and nomaxReadOperationIntervalwill be applied. If themaxReadOperationIntervalis less than1ms, then1mswill be themaxReadOperationInterval. ThemaxReadOperationIntervalsetting onHttpClientRequestlevel overrides anymaxReadOperationIntervalsetting onHttpClientlevel.- Parameters:
maxReadOperationInterval- the maximum duration allowed between each network-level read operations (resolution: ms).- Returns:
- this outbound
- Since:
- 0.9.11
- See Also:
-