public interface HttpServerRequest extends NettyInbound, HttpInfos
Modifier and Type | Method and Description |
---|---|
java.net.InetSocketAddress |
hostAddress()
Returns the address of the host peer or
null in case of Unix Domain Sockets. |
java.lang.String |
param(java.lang.CharSequence key)
URI parameter captured via {} "/test/{var}"
|
java.util.Map<java.lang.String,java.lang.String> |
params()
Returns the param captured key/value map
|
HttpServerRequest |
paramsResolver(java.util.function.Function<? super java.lang.String,java.util.Map<java.lang.String,java.lang.String>> paramsResolver)
Specifies a params resolver.
|
default reactor.core.publisher.Flux<io.netty.handler.codec.http.HttpContent> |
receiveContent()
Returns a
Flux of HttpContent containing received chunks |
java.net.InetSocketAddress |
remoteAddress()
Returns the address of the remote peer or
null in case of Unix Domain Sockets. |
io.netty.handler.codec.http.HttpHeaders |
requestHeaders()
Returns inbound
HttpHeaders |
java.lang.String |
scheme()
Returns the current protocol scheme
|
HttpServerRequest |
withConnection(java.util.function.Consumer<? super Connection> withConnection)
Calls the passed callback with a
Connection to operate on the
underlying Channel state. |
receive, receiveObject
cookies, fullPath, 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 java.lang.String param(java.lang.CharSequence key)
key
- param var name@Nullable java.util.Map<java.lang.String,java.lang.String> params()
HttpServerRequest paramsResolver(java.util.function.Function<? super java.lang.String,java.util.Map<java.lang.String,java.lang.String>> paramsResolver)
paramsResolver
- a params resolverHttpServerRequest
default reactor.core.publisher.Flux<io.netty.handler.codec.http.HttpContent> receiveContent()
Flux
of HttpContent
containing received chunksFlux
of HttpContent
containing received chunks@Nullable java.net.InetSocketAddress hostAddress()
null
in case of Unix Domain Sockets.@Nullable java.net.InetSocketAddress remoteAddress()
null
in case of Unix Domain Sockets.io.netty.handler.codec.http.HttpHeaders requestHeaders()
HttpHeaders
HttpHeaders
java.lang.String scheme()