public class RxNettyServerHttpRequest extends AbstractServerHttpRequest
ServerHttpRequest to the RxNetty HttpServerRequest.ServerHttpRequest.Builder| Constructor and Description |
|---|
RxNettyServerHttpRequest(io.reactivex.netty.protocol.http.server.HttpServerRequest<io.netty.buffer.ByteBuf> request,
org.springframework.core.io.buffer.NettyDataBufferFactory dataBufferFactory) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> |
getBody()
Return the body of the message as a
Publisher. |
HttpMethod |
getMethod()
Return the HTTP method of the request.
|
io.reactivex.netty.protocol.http.server.HttpServerRequest<io.netty.buffer.ByteBuf> |
getRxNettyRequest() |
protected org.springframework.util.MultiValueMap<String,HttpCookie> |
initCookies()
Obtain the cookies from the underlying "native" request and adapt those to
an
HttpCookie map. |
getCookies, getHeaders, getQueryParams, getURI, initQueryParamsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextPath, mutatepublic RxNettyServerHttpRequest(io.reactivex.netty.protocol.http.server.HttpServerRequest<io.netty.buffer.ByteBuf> request,
org.springframework.core.io.buffer.NettyDataBufferFactory dataBufferFactory)
public io.reactivex.netty.protocol.http.server.HttpServerRequest<io.netty.buffer.ByteBuf> getRxNettyRequest()
public HttpMethod getMethod()
HttpRequestnull
if not resolvable (e.g. in case of a non-standard HTTP method)protected org.springframework.util.MultiValueMap<String,HttpCookie> initCookies()
AbstractServerHttpRequestHttpCookie 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 AbstractServerHttpRequestpublic reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> getBody()
ReactiveHttpInputMessagePublisher.