接口的使用
org.springframework.http.ReactiveHttpOutputMessage
使用ReactiveHttpOutputMessage的程序包 程序包 说明 org.springframework.http Contains a basic abstraction over client/server-side HTTP.org.springframework.http.client.reactive Abstractions for reactive HTTP client support includingClientHttpRequest
andClientHttpResponse
as well as aClientHttpConnector
.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 aServerHttpRequest
andServerHttpResponse
along with anHttpHandler
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.org.springframework.http中ReactiveHttpOutputMessage的使用
org.springframework.http中ReactiveHttpOutputMessage的子接口 修饰符和类型 接口 说明 interface
ZeroCopyHttpOutputMessage
Sub-interface ofReactiveOutputMessage
that has support for "zero-copy" file transfers.org.springframework.http.client.reactive中ReactiveHttpOutputMessage的使用
org.springframework.http.client.reactive中ReactiveHttpOutputMessage的子接口 修饰符和类型 接口 说明 interface
ClientHttpRequest
Represents a client-side reactive HTTP request.实现ReactiveHttpOutputMessage的org.springframework.http.client.reactive中的类 修饰符和类型 类 说明 class
AbstractClientHttpRequest
Base class forClientHttpRequest
implementations.class
ClientHttpRequestDecorator
Wraps anotherClientHttpRequest
and delegates all methods to it.org.springframework.http.codec中ReactiveHttpOutputMessage的使用
参数类型为ReactiveHttpOutputMessage的org.springframework.http.codec中的方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<Void>
EncoderHttpMessageWriter. write(org.reactivestreams.Publisher<? extends T> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
FormHttpMessageWriter. write(org.reactivestreams.Publisher<? extends MultiValueMap<String,String>> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
HttpMessageWriter. write(org.reactivestreams.Publisher<? extends T> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
Write an given stream of object to the output message.reactor.core.publisher.Mono<Void>
ResourceHttpMessageWriter. write(org.reactivestreams.Publisher<? extends Resource> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
reactor.core.publisher.Mono<Void>
ServerSentEventHttpMessageWriter. write(org.reactivestreams.Publisher<?> input, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
org.springframework.http.codec.multipart中ReactiveHttpOutputMessage的使用
参数类型为ReactiveHttpOutputMessage的org.springframework.http.codec.multipart中的方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<Void>
MultipartHttpMessageWriter. write(org.reactivestreams.Publisher<? extends MultiValueMap<String,?>> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage outputMessage, Map<String,Object> hints)
org.springframework.http.codec.protobuf中ReactiveHttpOutputMessage的使用
参数类型为ReactiveHttpOutputMessage的org.springframework.http.codec.protobuf中的方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<Void>
ProtobufHttpMessageWriter. write(org.reactivestreams.Publisher<? extends com.google.protobuf.Message> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String,Object> hints)
org.springframework.http.server.reactive中ReactiveHttpOutputMessage的使用
org.springframework.http.server.reactive中ReactiveHttpOutputMessage的子接口 修饰符和类型 接口 说明 interface
ServerHttpResponse
Represents a reactive server-side HTTP response.实现ReactiveHttpOutputMessage的org.springframework.http.server.reactive中的类 修饰符和类型 类 说明 class
AbstractListenerServerHttpResponse
Abstract base class for listener-based server responses, e.g.class
AbstractServerHttpResponse
Base class forServerHttpResponse
implementations.class
HttpHeadResponseDecorator
ServerHttpResponse
decorator for HTTP HEAD requests.class
ServerHttpResponseDecorator
Wraps anotherServerHttpResponse
and delegates all methods to it.org.springframework.mock.http.client.reactive中ReactiveHttpOutputMessage的使用
实现ReactiveHttpOutputMessage的org.springframework.mock.http.client.reactive中的类 修饰符和类型 类 说明 class
MockClientHttpRequest
Mock implementation ofClientHttpRequest
.org.springframework.mock.http.server.reactive中ReactiveHttpOutputMessage的使用
实现ReactiveHttpOutputMessage的org.springframework.mock.http.server.reactive中的类 修饰符和类型 类 说明 class
MockServerHttpResponse
Mock extension ofAbstractServerHttpResponse
for use in tests without an actual server.org.springframework.web.reactive.function中ReactiveHttpOutputMessage的使用
类型参数类型为ReactiveHttpOutputMessage的org.springframework.web.reactive.function中的类 修饰符和类型 接口 说明 interface
BodyInserter<T,M extends ReactiveHttpOutputMessage>
A combination of functions that can populate aReactiveHttpOutputMessage
body.返回变量类型为ReactiveHttpOutputMessage的类型的org.springframework.web.reactive.function中的方法 修饰符和类型 方法 说明 static <T> BodyInserter<T,ReactiveHttpOutputMessage>
BodyInserters. empty()
Inserter that does not write.static <T extends org.reactivestreams.Publisher<DataBuffer>>
BodyInserter<T,ReactiveHttpOutputMessage>BodyInserters. fromDataBuffers(T publisher)
Inserter to write the givenPublisher<DataBuffer>
to the body.static <T> BodyInserter<T,ReactiveHttpOutputMessage>
BodyInserters. fromObject(T body)
已过时。As of Spring Framework 5.2, in favor ofBodyInserters.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 aPublisher
or another producer adaptable to aPublisher
viaReactiveAdapterRegistry
.static <T> BodyInserter<T,ReactiveHttpOutputMessage>
BodyInserters. fromProducer(T producer, ParameterizedTypeReference<?> elementTypeRef)
Inserter to write the given producer of value(s) which must be aPublisher
or another producer adaptable to aPublisher
viaReactiveAdapterRegistry
.static <T,P extends org.reactivestreams.Publisher<T>>
BodyInserter<P,ReactiveHttpOutputMessage>BodyInserters. fromPublisher(P publisher, Class<T> elementClass)
Inserter to write the givenPublisher
.static <T,P extends org.reactivestreams.Publisher<T>>
BodyInserter<P,ReactiveHttpOutputMessage>BodyInserters. fromPublisher(P publisher, ParameterizedTypeReference<T> elementTypeRef)
Inserter to write the givenPublisher
.static <T extends Resource>
BodyInserter<T,ReactiveHttpOutputMessage>BodyInserters. fromResource(T resource)
Inserter to write the givenResource
.static <T> BodyInserter<T,ReactiveHttpOutputMessage>
BodyInserters. fromValue(T body)
Inserter to write the given value.