Top Description Methods
org.springframework.http.server.reactive

public Interface HttpHandler

Known Direct Implementers
org.springframework.web.server.adapter.HttpWebHandlerAdapter, org.springframework.http.server.reactive.ContextPathCompositeHandler
Imports
reactor.core.publisher.Mono

Lowest level contract for reactive HTTP request handling that serves as a common denominator across different runtimes.

Higher-level, but still generic, building blocks for applications such as WebFilter, WebSession, ServerWebExchange, and others are available in the org.springframework.web.server package.

Application level programming models such as annotated controllers and functional handlers are available in the spring-webflux module.

Typically an HttpHandler represents an entire application with higher-level programming models bridged via org.springframework.web.server.adapter.WebHttpHandlerBuilder. Multiple applications at unique context paths can be plugged in with the help of the ContextPathCompositeHandler.

Authors
Arjen Poutsma, Rossen Stoyanchev
Since
5.0
See Also
ContextPathCompositeHandler

Method Summary

Modifier and TypeMethod and Description
public Mono<Void>

Returns:

indicates completion of request handling
handle
(ServerHttpRequest
current request
request
,
ServerHttpResponse
current response
response
)

Handle the given request and write to the response.

Method Detail

handleback to summary
public Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response)

Handle the given request and write to the response.

Parameters
request:ServerHttpRequest

current request

response:ServerHttpResponse

current response

Returns:Mono<Void>

indicates completion of request handling