public interface HttpServerRequest extends NettyInbound, HttpInfos
| Modifier and Type | Method and Description |
|---|---|
default HttpServerRequest |
context(java.util.function.Consumer<NettyContext> contextCallback)
Immediately call the passed callback with a
NettyContext to operate on the
underlying
Channel state. |
default HttpServerRequest |
onReadIdle(long idleTimeout,
Runnable onReadIdle)
Assign a
Runnable to be invoked when reads have become idle for the given
timeout. |
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 |
HttpHeaders |
requestHeaders()
Return inbound
HttpHeaders |
attr, context, receive, receiveObject, remoteAddresscookies, isKeepAlive, isWebsocket, method, path, uri, versiondefault HttpServerRequest onReadIdle(long idleTimeout, Runnable onReadIdle)
NettyInboundRunnable to be invoked when reads have become idle for the given
timeout. This replaces any previously set idle callback.onReadIdle in interface NettyInboundidleTimeout - the idle timeoutonReadIdle - the idle timeout handlerdefault HttpServerRequest context(java.util.function.Consumer<NettyContext> contextCallback)
NettyInboundNettyContext to operate on the
underlying
Channel state. This allows for chaining inbound API.context in interface NettyInboundcontextCallback - context callbackNettyContextString param(CharSequence key)
key - param var nameMap<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 chunksHttpHeaders requestHeaders()
HttpHeadersHttpHeaders