public interface HttpHandler
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
WebHttpHandlerBuilder
.
Multiple applications at unique context paths can be plugged in with the
help of the ContextPathCompositeHandler
.
ContextPathCompositeHandler
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
handle(ServerHttpRequest request,
ServerHttpResponse response)
Handle the given request and write to the response.
|
reactor.core.publisher.Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response)
request
- current requestresponse
- current response