Top Description Methods
reactor.netty.http

public Interface HttpInfos

Known Direct Subinterfaces
reactor.netty.http.client.HttpClientInfos, reactor.netty.http.server.HttpServerInfos
Known Direct Implementers
reactor.netty.http.HttpOperations
Imports
java.util.Map, .Set, io.netty.handler.codec.http.HttpMethod, .HttpVersion, io.netty.handler.codec.http.cookie.Cookie

An Http Reactive Channel with several accessors related to HTTP flow: headers, params, URI, method, websocket...
Author
Stephane Maldini
Since
0.5

Method Summary

Modifier and TypeMethod and Description
public Map<CharSequence, Set<Cookie>>

Returns:

Resolved HTTP cookies
cookies
()

Returns resolved HTTP cookies.

public String

Returns:

the decoded path portion from the uri()
fullPath
()

Returns the decoded path portion from the uri().

public boolean

Returns:

is keep alive
isKeepAlive
()

Is the request keep alive.

public boolean

Returns:

true if websocket connection
isWebsocket
()

Returns true if websocket connection (upgraded).

public HttpMethod

Returns:

the resolved request method (HTTP 1.1 etc.)
method
()

Returns the resolved request method (HTTP 1.1 etc.).

public default String

Returns:

the decoded path portion from the uri() without the leading and trailing '/' if present
path
()

Returns the decoded path portion from the uri() without the leading and trailing '/' if present.

public String

Returns:

an unique id for the request
requestId
()

Return a unique id for the request.

public String

Returns:

the resolved target address
uri
()

Returns the resolved target address.

public HttpVersion

Returns:

the resolved request version (HTTP 1.1 etc)
version
()

Returns the resolved request version (HTTP 1.1 etc).

Method Detail

cookiesback to summary
public Map<CharSequence, Set<Cookie>> cookies()

Returns resolved HTTP cookies.

Returns:Map<CharSequence, Set<Cookie>>

Resolved HTTP cookies

fullPathback to summary
public String fullPath()

Returns the decoded path portion from the uri().

Returns:String

the decoded path portion from the uri()

Since
0.9.6
isKeepAliveback to summary
public boolean isKeepAlive()

Is the request keep alive.

Returns:boolean

is keep alive

isWebsocketback to summary
public boolean isWebsocket()

Returns true if websocket connection (upgraded).

Returns:boolean

true if websocket connection

methodback to summary
public HttpMethod method()

Returns the resolved request method (HTTP 1.1 etc.).

Returns:HttpMethod

the resolved request method (HTTP 1.1 etc.)

pathback to summary
public default String path()

Returns the decoded path portion from the uri() without the leading and trailing '/' if present.

Returns:String

the decoded path portion from the uri() without the leading and trailing '/' if present

requestIdback to summary
public String requestId()

Return a unique id for the request. The id is a combination of the id of the underlying connection and the serial number of the request received on that connection.

Format of the id: <CONNECTION_ID>-<REQUEST_NUMBER>

Example: <CONNECTION_ID>: 329c6ffd <REQUEST_NUMBER>: 5 Result: 329c6ffd-5

Returns:String

an unique id for the request

Since
1.0.5
uriback to summary
public String uri()

Returns the resolved target address.

Returns:String

the resolved target address

versionback to summary
public HttpVersion version()

Returns the resolved request version (HTTP 1.1 etc).

Returns:HttpVersion

the resolved request version (HTTP 1.1 etc)