Uses of Interface
org.springframework.http.server.reactive.ServerHttpResponse
Package
Description
JSON encoder and decoder support.
Abstractions for reactive HTTP server support including a
ServerHttpRequest
and
ServerHttpResponse
along with an
HttpHandler
for processing.Instrumentation for
observing
reactive HTTP server applications.Mock implementations of reactive HTTP server contracts.
Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor
strategy.Provides a foundation for both the reactive client and server subpackages.
Provides the types that make up Spring's functional web framework for Reactive environments.
Core interfaces and classes for Spring's generic, reactive web support.
Implementations to adapt to the underlying
org.springframework.http.client.reactive
reactive HTTP adapter
and HttpHandler
.-
Uses of ServerHttpResponse in org.springframework.http.codec
Modifier and TypeMethodDescriptionHttpMessageDecoder.getDecodeHints
(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) Get decoding hints based on the server request or annotations on the target controller method parameter.HttpMessageEncoder.getEncodeHints
(ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response) Get decoding hints based on the server request or annotations on the target controller method parameter.DecoderHttpMessageReader.getReadHints
(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) Get additional hints for decoding for example based on the server request or annotations from controller method parameters.ResourceHttpMessageReader.getReadHints
(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) EncoderHttpMessageWriter.getWriteHints
(ResolvableType streamType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response) Get additional hints for encoding for example based on the server request or annotations from controller method parameters.reactor.core.publisher.Flux<T>
DecoderHttpMessageReader.read
(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) default reactor.core.publisher.Flux<T>
HttpMessageReader.read
(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) Server-side only alternative toHttpMessageReader.read(ResolvableType, ReactiveHttpInputMessage, Map)
with additional context available.reactor.core.publisher.Mono<T>
DecoderHttpMessageReader.readMono
(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) default reactor.core.publisher.Mono<T>
HttpMessageReader.readMono
(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) Server-side only alternative toHttpMessageReader.readMono(ResolvableType, ReactiveHttpInputMessage, Map)
with additional, context available.reactor.core.publisher.Mono<Void>
EncoderHttpMessageWriter.write
(Publisher<? extends T> inputStream, ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) default reactor.core.publisher.Mono<Void>
HttpMessageWriter.write
(Publisher<? extends T> inputStream, ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) Server-side only alternative toHttpMessageWriter.write(Publisher, ResolvableType, MediaType, ReactiveHttpOutputMessage, Map)
with additional context available.reactor.core.publisher.Mono<Void>
ResourceHttpMessageWriter.write
(Publisher<? extends Resource> inputStream, ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) reactor.core.publisher.Mono<Void>
ServerSentEventHttpMessageWriter.write
(Publisher<?> input, ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) -
Uses of ServerHttpResponse in org.springframework.http.codec.json
Modifier and TypeMethodDescriptionAbstractJackson2Decoder.getDecodeHints
(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) AbstractJackson2Encoder.getEncodeHints
(ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response) -
Uses of ServerHttpResponse in org.springframework.http.server.reactive
Modifier and TypeClassDescriptionclass
Abstract base class for listener-based server responses.class
Base class forServerHttpResponse
implementations.class
ServerHttpResponse
decorator for HTTP HEAD requests.class
Wraps anotherServerHttpResponse
and delegates all methods to it.Modifier and TypeMethodDescriptionstatic <T> T
ServerHttpResponseDecorator.getNativeResponse
(ServerHttpResponse response) Return the native response of the underlying server API, if possible, also unwrappingServerHttpResponseDecorator
if necessary.reactor.core.publisher.Mono<Void>
ContextPathCompositeHandler.handle
(ServerHttpRequest request, ServerHttpResponse response) reactor.core.publisher.Mono<Void>
HttpHandler.handle
(ServerHttpRequest request, ServerHttpResponse response) Handle the given request and write to the response. -
Uses of ServerHttpResponse in org.springframework.http.server.reactive.observation
ModifierConstructorDescriptionServerRequestObservationContext
(ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> attributes) Create a newServerRequestObservationContext
instance. -
Uses of ServerHttpResponse in org.springframework.mock.http.server.reactive
Modifier and TypeClassDescriptionclass
Mock extension ofAbstractServerHttpResponse
for use in tests without an actual server. -
Uses of ServerHttpResponse in org.springframework.web.cors.reactive
Modifier and TypeMethodDescriptionprotected void
DefaultCorsProcessor.rejectRequest
(ServerHttpResponse response) Invoked when one of the CORS checks failed. -
Uses of ServerHttpResponse in org.springframework.web.reactive.function
Modifier and TypeMethodDescriptionstatic <T,
S extends Publisher<ServerSentEvent<T>>>
BodyInserter<S,ServerHttpResponse> BodyInserters.fromServerSentEvents
(S eventsPublisher) Inserter to write the givenServerSentEvent
publisher.BodyExtractor.Context.serverResponse()
Optionally return theServerHttpResponse
, if present. -
Uses of ServerHttpResponse in org.springframework.web.reactive.function.server
Modifier and TypeMethodDescriptionBodyInserter<T,
? super ServerHttpResponse> EntityResponse.inserter()
Return theBodyInserter
that writes the entity to the output stream.Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ServerResponse>
ServerResponse.BodyBuilder.body
(BodyInserter<?, ? super ServerHttpResponse> inserter) Set the body of the response to the givenBodyInserter
and return it. -
Uses of ServerHttpResponse in org.springframework.web.server
Modifier and TypeMethodDescriptionServerWebExchange.getResponse()
Return the current HTTP response.ServerWebExchangeDecorator.getResponse()
Modifier and TypeMethodDescriptionServerWebExchange.Builder.response
(ServerHttpResponse response) Set the response to use. -
Uses of ServerHttpResponse in org.springframework.web.server.adapter
Modifier and TypeMethodDescriptionprotected ServerWebExchange
HttpWebHandlerAdapter.createExchange
(ServerHttpRequest request, ServerHttpResponse response) reactor.core.publisher.Mono<Void>
HttpWebHandlerAdapter.handle
(ServerHttpRequest request, ServerHttpResponse response) ModifierConstructorDescriptionDefaultServerWebExchange
(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver)