Package org.springframework.http.server.reactive
Abstractions for reactive HTTP server support including a
ServerHttpRequest
and ServerHttpResponse
along with an HttpHandler
for processing. Also provides implementations adapting to different runtimes including Servlet 3.1 containers, Netty + Reactor IO, and Undertow.
Interface Summary Interface Description HttpHandler Lowest level contract for reactive HTTP request handling that serves as a common denominator across different runtimes.ServerHttpRequest Represents a reactive server-side HTTP request.ServerHttpRequest.Builder Builder for mutating an existingServerHttpRequest
.ServerHttpResponse Represents a reactive server-side HTTP response.SslInfo A holder for SSL session information.Class Summary Class Description AbstractListenerReadPublisher<T> Abstract base class forPublisher
implementations that bridge between event-listener read APIs and Reactive Streams.AbstractListenerServerHttpResponse Abstract base class for listener-based server responses, e.g.AbstractListenerWriteFlushProcessor<T> An alternative toAbstractListenerWriteProcessor
but instead writing aPublisher<Publisher<T>>
with flush boundaries enforces after the completion of each nested Publisher.AbstractListenerWriteProcessor<T> Abstract base class forProcessor
implementations that bridge between event-listener write APIs and Reactive Streams.AbstractServerHttpRequest Common base class forServerHttpRequest
implementations.AbstractServerHttpResponse Base class forServerHttpResponse
implementations.ChannelSendOperator<T> Given a write function that accepts a sourcePublisher<T>
to write with and returnsPublisher<Void>
for the result, this operator helps to defer the invocation of the write function, until we know if the source publisher will begin publishing without an error.ContextPathCompositeHandler HttpHandler
delegating requests to one of severalHttpHandler
's based on simple, prefix-based mappings.HttpHeadResponseDecorator ServerHttpResponse
decorator for HTTP HEAD requests.JettyHttpHandlerAdapter ServletHttpHandlerAdapter
extension that uses Jetty APIs for writing to the response withByteBuffer
.ReactorHttpHandlerAdapter AdaptHttpHandler
to the Reactor Netty channel handling function.ServerHttpRequestDecorator Wraps anotherServerHttpRequest
and delegates all methods to it.ServerHttpResponseDecorator Wraps anotherServerHttpResponse
and delegates all methods to it.ServletHttpHandlerAdapter AdaptHttpHandler
to anHttpServlet
using Servlet Async support and Servlet 3.1 non-blocking I/O.TomcatHttpHandlerAdapter ServletHttpHandlerAdapter
extension that uses Tomcat APIs for reading from the request and writing to the response withByteBuffer
.UndertowHttpHandlerAdapter AdaptHttpHandler
to the UndertowHttpHandler
.