Top Description Methods
reactor.netty.http.client

public Interface HttpClientInfos

extends HttpInfos
Known Direct Subinterfaces
reactor.netty.http.client.HttpClientRequest, reactor.netty.http.client.HttpClientResponse
Imports
io.netty.handler.codec.http.HttpHeaders, reactor.netty.http.HttpInfos, reactor.util.annotation.Nullable, reactor.util.context.Context, .ContextView

An Http Reactive Channel with several accessors related to HTTP flow: resource URL, information for redirections etc...
Since
0.9.3

Method Summary

Modifier and TypeMethod and Description
public Context

Returns:

the current user Context
currentContext
()

Deprecated Use currentContextView(). This method will be removed in version 1.1.0.
Return the current Context associated with the Mono/Flux exposed via HttpClient.ResponseReceiver#response() or related terminating API.
public ContextView

Returns:

the current user ContextView
currentContextView
()

Return the current ContextView associated with the Mono/Flux exposed via HttpClient.ResponseReceiver#response() or related terminating API.

public String[]

Returns:

the previous redirections or empty array
redirectedFrom
()

Return the previous redirections or empty array.

public HttpHeaders

Returns:

outbound headers to be sent
requestHeaders
()

Return outbound headers to be sent.

public String

Returns:

The URL of the retrieved resource. This method can return null in case there was an error before the client could create the URL
resourceUrl
()

Return the fully qualified URL of the requested resource.

Inherited from reactor.netty.http.HttpInfos:
cookiesfullPathisKeepAliveisWebsocketmethodpathrequestIduriversion

Method Detail

currentContextback to summary
public Context currentContext()

Deprecated

Use currentContextView(). This method will be removed in version 1.1.0.

Return the current Context associated with the Mono/Flux exposed via HttpClient.ResponseReceiver#response() or related terminating API.

Returns:Context

the current user Context

Annotations
@Deprecated
currentContextViewback to summary
public ContextView currentContextView()

Return the current ContextView associated with the Mono/Flux exposed via HttpClient.ResponseReceiver#response() or related terminating API.

Returns:ContextView

the current user ContextView

Since
1.0.0
redirectedFromback to summary
public String[] redirectedFrom()

Return the previous redirections or empty array.

Returns:String[]

the previous redirections or empty array

requestHeadersback to summary
public HttpHeaders requestHeaders()

Return outbound headers to be sent.

Returns:HttpHeaders

outbound headers to be sent

resourceUrlback to summary
public String resourceUrl()

Return the fully qualified URL of the requested resource. In case of redirects, return the URL the last redirect led to.

Returns:String

The URL of the retrieved resource. This method can return null in case there was an error before the client could create the URL

Annotations
@Nullable