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.
|
Context |
currentContext()
Return the current
Context associated with the Mono/Flux exposed
via HttpClient.ResponseReceiver.response() or related terminating API. |
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
|
String[] |
redirectedFrom()
Return the previous redirections or empty array
|
HttpHeaders |
requestHeaders()
Return outbound headers to be sent
|
cookies, 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 mapContext currentContext()
Context
associated with the Mono/Flux exposed
via HttpClient.ResponseReceiver.response()
or related terminating API.Context
boolean isFollowRedirect()
String[] redirectedFrom()
HttpHeaders requestHeaders()