public class ReactorServerHttpRequest extends AbstractServerHttpRequest
ServerHttpRequest
to the Reactor HttpServerRequest
.ServerHttpRequest.Builder
Constructor and Description |
---|
ReactorServerHttpRequest(reactor.ipc.netty.http.server.HttpServerRequest request,
NettyDataBufferFactory bufferFactory) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
getBody()
Return the body of the message as a
Publisher . |
HttpMethod |
getMethod()
Return the HTTP method of the request.
|
reactor.ipc.netty.http.server.HttpServerRequest |
getReactorRequest() |
Optional<InetSocketAddress> |
getRemoteAddress()
Returns the remote address where this request is connected to.
|
protected MultiValueMap<String,HttpCookie> |
initCookies()
Obtain the cookies from the underlying "native" request and adapt those to
an
HttpCookie map. |
getCookies, getHeaders, getQueryParams, getURI, initQueryParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextPath, mutate
public ReactorServerHttpRequest(reactor.ipc.netty.http.server.HttpServerRequest request, NettyDataBufferFactory bufferFactory)
public reactor.ipc.netty.http.server.HttpServerRequest getReactorRequest()
public HttpMethod getMethod()
HttpRequest
null
if not resolvable (e.g. in case of a non-standard HTTP method)protected MultiValueMap<String,HttpCookie> initCookies()
AbstractServerHttpRequest
HttpCookie
map. The return value is turned into an immutable
map and cached.
Note that this method is invoked lazily on access to
AbstractServerHttpRequest.getCookies()
. Sub-classes should synchronize cookie
initialization if the underlying "native" request does not provide
thread-safe access to cookie data.
initCookies
in class AbstractServerHttpRequest
public Optional<InetSocketAddress> getRemoteAddress()
ServerHttpRequest
public reactor.core.publisher.Flux<DataBuffer> getBody()
ReactiveHttpInputMessage
Publisher
.