程序包 cn.taketoday.http.server.reactive
@NonNullApi
@NonNullFields
package cn.taketoday.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.
-
类说明Abstract base class for
Publisherimplementations that bridge between event-listener read APIs and Reactive Streams.Represents a state for thePublisherto be in.Abstract base class for listener-based server responses, e.g.An alternative toAbstractListenerWriteProcessorbut instead writing aPublisher<Publisher<T>>with flush boundaries enforces after the completion of each nested Publisher.Represents a state for theProcessorto be in.Subscriber to receive and delegate completion notifications for from the current Publisher, i.e. for the current flush boundary.Abstract base class forProcessorimplementations that bridge between event-listener write APIs and Reactive Streams.Represents a state for theProcessorto be in.Common base class forServerHttpRequestimplementations.Base class forServerHttpResponseimplementations.COMMITTING -> COMMITTED is the period after doCommit is called but before the response status and headers have been applied to the underlying response during which time pre-commit actions can still make changes to the response status and headers.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.HttpHandlerdelegating requests to one of severalHttpHandler's based on simple, prefix-based mappings.Package-private default implementation ofServerHttpRequest.Builder.Default implementation ofSslInfo.Extract values from "Forwarded" and "X-Forwarded-*" headers to override the request URI (i.e.Lowest level contract for reactive HTTP request handling that serves as a common denominator across different runtimes.Contract for applying a decorator to anHttpHandler.ServerHttpResponsedecorator for HTTP HEAD requests.ServletHttpHandlerAdapterextension that uses Jetty APIs for writing to the response withByteBuffer.AdaptHttpHandlerto the Reactor Netty channel handling function.AdaptHttpHandlerto the Reactor Netty 5 channel handling function.AdaptServerHttpRequestto the ReactorHttpServerRequest.AdaptServerHttpResponseto theHttpServerResponse.AdaptServerHttpRequestto the ReactorHttpServerRequest.AdaptServerHttpResponseto theHttpServerResponse.Helper class for creating aURIfrom a reactorHttpServerRequest.Represents a reactive server-side HTTP request.Builder for mutating an existingServerHttpRequest.Wraps anotherServerHttpRequestand delegates all methods to it.Represents a reactive server-side HTTP response.Wraps anotherServerHttpResponseand delegates all methods to it.AdaptHttpHandlerto anHttpServletusing Servlet Async support and Servlet 3.1 non-blocking I/O.AsyncListener to complete theAsyncContextin case of error or timeout notifications from the containerAdaptServerHttpRequestto the ServletHttpServletRequest.AdaptServerHttpResponseto the ServletHttpServletResponse.A holder for SSL session information.MultiValueMapimplementation for wrapping Tomcat HTTP headers.ServletHttpHandlerAdapterextension that uses Tomcat APIs for reading from the request and writing to the response withByteBuffer.MultiValueMapimplementation for wrapping Undertow HTTP headers.AdaptHttpHandlerto the UndertowHttpHandler.AdaptServerHttpRequestto the UndertowHttpServerExchange.AdaptServerHttpResponseto the UndertowHttpServerExchange.Publisher returned fromReactiveHttpOutputMessage.writeWith(Publisher).Represents a state for thePublisherto be in.Subscription to receive and delegate request and cancel signals from the subscriber to this publisher.