public interface HttpServerRequest extends NettyInbound, HttpInfos
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
hostAddress()
Return the address of the host peer.
|
String |
param(CharSequence key)
URI parameter captured via {} "/test/{var}"
|
Map<String,String> |
params()
Return the param captured key/value map
|
HttpServerRequest |
paramsResolver(java.util.function.Function<? super String,Map<String,String>> headerResolver) |
default Flux<HttpContent> |
receiveContent()
Return a
Flux of HttpContent containing received chunks |
InetSocketAddress |
remoteAddress()
Return the address of the remote peer.
|
HttpHeaders |
requestHeaders()
Return inbound
HttpHeaders |
String |
scheme()
Return the current scheme
|
HttpServerRequest |
withConnection(java.util.function.Consumer<? super Connection> withConnection)
Call the passed callback with a
Connection to operate on the
underlying
Channel state. |
receive, receiveObject
cookies, isKeepAlive, isWebsocket, method, path, uri, version
HttpServerRequest withConnection(java.util.function.Consumer<? super Connection> withConnection)
NettyInbound
Connection
to operate on the
underlying
Channel
state. This allows for chaining inbound API.withConnection
in interface NettyInbound
withConnection
- connection callbackConnection
@Nullable String param(CharSequence key)
key
- param var name@Nullable Map<String,String> params()
HttpServerRequest paramsResolver(java.util.function.Function<? super String,Map<String,String>> headerResolver)
headerResolver
- provide a paramsdefault Flux<HttpContent> receiveContent()
Flux
of HttpContent
containing received chunksFlux
of HttpContent
containing received chunksInetSocketAddress hostAddress()
InetSocketAddress remoteAddress()
HttpHeaders requestHeaders()
HttpHeaders
HttpHeaders
String scheme()