Package | Description |
---|---|
org.springframework.http |
Contains a basic abstraction over client/server-side HTTP.
|
org.springframework.http.client.reactive |
Abstractions for reactive HTTP client support including
ClientHttpRequest and
ClientHttpResponse as well as a
ClientHttpConnector . |
org.springframework.http.codec | |
org.springframework.http.codec.multipart |
Multipart support.
|
org.springframework.http.codec.protobuf |
Provides an encoder and a decoder for
Google Protocol Buffers.
|
org.springframework.http.server.reactive |
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing. |
org.springframework.mock.http.client.reactive |
Mock implementations of reactive HTTP client contracts.
|
org.springframework.mock.http.server.reactive |
Mock implementations of reactive HTTP server contracts.
|
org.springframework.web.reactive.function |
Provides a foundation for both the reactive client and server subpackages.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ZeroCopyHttpOutputMessage
Sub-interface of
ReactiveOutputMessage that has support for "zero-copy"
file transfers. |
Modifier and Type | Interface and Description |
---|---|
interface |
ClientHttpRequest
Represents a client-side reactive HTTP request.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractClientHttpRequest
Base class for
ClientHttpRequest implementations. |
class |
ClientHttpRequestDecorator
Wraps another
ClientHttpRequest and delegates all methods to it. |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
ServerSentEventHttpMessageWriter.write(Publisher<?> input,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage message,
Map<String,Object> hints) |
reactor.core.publisher.Mono<Void> |
FormHttpMessageWriter.write(Publisher<? extends MultiValueMap<String,String>> inputStream,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage message,
Map<String,Object> hints) |
reactor.core.publisher.Mono<Void> |
ResourceHttpMessageWriter.write(Publisher<? extends Resource> inputStream,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage message,
Map<String,Object> hints) |
reactor.core.publisher.Mono<Void> |
EncoderHttpMessageWriter.write(Publisher<? extends T> inputStream,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage message,
Map<String,Object> hints) |
reactor.core.publisher.Mono<Void> |
HttpMessageWriter.write(Publisher<? extends T> inputStream,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage message,
Map<String,Object> hints)
Write a given stream of object to the output message.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
MultipartHttpMessageWriter.write(Publisher<? extends MultiValueMap<String,?>> inputStream,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage outputMessage,
Map<String,Object> hints) |
reactor.core.publisher.Mono<Void> |
PartHttpMessageWriter.write(Publisher<? extends Part> parts,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage outputMessage,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
ProtobufHttpMessageWriter.write(Publisher<? extends com.google.protobuf.Message> inputStream,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage message,
Map<String,Object> hints) |
Modifier and Type | Interface and Description |
---|---|
interface |
ServerHttpResponse
Represents a reactive server-side HTTP response.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractListenerServerHttpResponse
Abstract base class for listener-based server responses, e.g.
|
class |
AbstractServerHttpResponse
Base class for
ServerHttpResponse implementations. |
class |
HttpHeadResponseDecorator
ServerHttpResponse decorator for HTTP HEAD requests. |
class |
ServerHttpResponseDecorator
Wraps another
ServerHttpResponse and delegates all methods to it. |
Modifier and Type | Class and Description |
---|---|
class |
MockClientHttpRequest
Mock implementation of
ClientHttpRequest . |
Modifier and Type | Class and Description |
---|---|
class |
MockServerHttpResponse
Mock extension of
AbstractServerHttpResponse for use in tests without
an actual server. |
Modifier and Type | Interface and Description |
---|---|
interface |
BodyInserter<T,M extends ReactiveHttpOutputMessage>
A combination of functions that can populate a
ReactiveHttpOutputMessage body. |
Modifier and Type | Method and Description |
---|---|
static <T> BodyInserter<T,ReactiveHttpOutputMessage> |
BodyInserters.empty()
Inserter that does not write.
|
static <T extends Publisher<DataBuffer>> |
BodyInserters.fromDataBuffers(T publisher)
Inserter to write the given
Publisher<DataBuffer> to the body. |
static <T> BodyInserter<T,ReactiveHttpOutputMessage> |
BodyInserters.fromObject(T body)
Deprecated.
As of Spring Framework 5.2, in favor of
BodyInserters.fromValue(Object) |
static <T> BodyInserter<T,ReactiveHttpOutputMessage> |
BodyInserters.fromProducer(T producer,
Class<?> elementClass)
Inserter to write the given producer of value(s) which must be a
Publisher
or another producer adaptable to a Publisher via
ReactiveAdapterRegistry . |
static <T> BodyInserter<T,ReactiveHttpOutputMessage> |
BodyInserters.fromProducer(T producer,
ParameterizedTypeReference<?> elementTypeRef)
Inserter to write the given producer of value(s) which must be a
Publisher
or another producer adaptable to a Publisher via
ReactiveAdapterRegistry . |
static <T,P extends Publisher<T>> |
BodyInserters.fromPublisher(P publisher,
Class<T> elementClass)
Inserter to write the given
Publisher . |
static <T,P extends Publisher<T>> |
BodyInserters.fromPublisher(P publisher,
ParameterizedTypeReference<T> elementTypeRef)
Inserter to write the given
Publisher . |
static <T extends Resource> |
BodyInserters.fromResource(T resource)
Inserter to write the given
Resource . |
static <T> BodyInserter<T,ReactiveHttpOutputMessage> |
BodyInserters.fromValue(T body)
Inserter to write the given value.
|