接口的使用
cn.taketoday.http.ReactiveHttpOutputMessage
程序包
说明
Contains a basic abstraction over client/server-side HTTP.
Abstractions for reactive HTTP client support including
ClientHttpRequest and
ClientHttpResponse as well as a
ClientHttpConnector.Provides implementations of
Encoder
and Decoder for web use.Multipart support.
Provides an encoder and a decoder for
Google Protocol Buffers.
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing.Provides a foundation for both the reactive client and server subpackages.
-
cn.taketoday.http中ReactiveHttpOutputMessage的使用
修饰符和类型接口说明interfaceSub-interface ofReactiveOutputMessagethat has support for "zero-copy" file transfers. -
cn.taketoday.http.client.reactive中ReactiveHttpOutputMessage的使用
修饰符和类型类说明classBase class forClientHttpRequestimplementations.classWraps anotherClientHttpRequestand delegates all methods to it.(专用程序包) classClientHttpRequestimplementation for the Apache HttpComponents HttpClient 5.x.(专用程序包) classClientHttpRequestfor the JavaHttpClient.(专用程序包) classClientHttpRequestimplementation for the Jetty ReactiveStreams HTTP client.(专用程序包) classClientHttpRequestimplementation for the Reactor-Netty HTTP client.(专用程序包) classClientHttpRequestimplementation for the Reactor Netty 2 (Netty 5) HTTP client. -
cn.taketoday.http.codec中ReactiveHttpOutputMessage的使用
修饰符和类型方法说明reactor.core.publisher.Mono<Void>ResourceHttpMessageWriter.addDefaultHeaders(ReactiveHttpOutputMessage message, cn.taketoday.core.io.Resource resource, MediaType contentType, Map<String, Object> hints) Adds the default headers for the given resource to the given message.private reactor.core.publisher.Mono<Void>ResourceHttpMessageWriter.encodeAndWriteRegions(org.reactivestreams.Publisher<? extends cn.taketoday.core.io.ResourceRegion> publisher, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String, Object> hints) private MediaTypeEncoderHttpMessageWriter.updateContentType(ReactiveHttpOutputMessage message, MediaType mediaType) reactor.core.publisher.Mono<Void>EncoderHttpMessageWriter.write(org.reactivestreams.Publisher<? extends T> inputStream, cn.taketoday.core.ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String, Object> hints) reactor.core.publisher.Mono<Void>FormHttpMessageWriter.write(org.reactivestreams.Publisher<? extends cn.taketoday.util.MultiValueMap<String, String>> inputStream, cn.taketoday.core.ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String, Object> hints) reactor.core.publisher.Mono<Void>HttpMessageWriter.write(org.reactivestreams.Publisher<? extends T> inputStream, cn.taketoday.core.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 cn.taketoday.core.io.Resource> inputStream, cn.taketoday.core.ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String, Object> hints) reactor.core.publisher.Mono<Void>ServerSentEventHttpMessageWriter.write(org.reactivestreams.Publisher<?> input, cn.taketoday.core.ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String, Object> hints) private reactor.core.publisher.Mono<Void>ResourceHttpMessageWriter.writeResource(cn.taketoday.core.io.Resource resource, cn.taketoday.core.ResolvableType type, MediaType mediaType, ReactiveHttpOutputMessage message, Map<String, Object> hints) private reactor.core.publisher.Mono<Void>ResourceHttpMessageWriter.writeSingleRegion(cn.taketoday.core.io.ResourceRegion region, ReactiveHttpOutputMessage message, Map<String, Object> hints) private static reactor.core.publisher.Mono<Void>ResourceHttpMessageWriter.zeroCopy(cn.taketoday.core.io.Resource resource, cn.taketoday.core.io.ResourceRegion region, ReactiveHttpOutputMessage message, Map<String, Object> hints) -
cn.taketoday.http.codec.multipart中ReactiveHttpOutputMessage的使用
修饰符和类型方法说明reactor.core.publisher.Mono<Void>MultipartHttpMessageWriter.write(org.reactivestreams.Publisher<? extends cn.taketoday.util.MultiValueMap<String, ?>> inputStream, cn.taketoday.core.ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage outputMessage, Map<String, Object> hints) reactor.core.publisher.Mono<Void>PartEventHttpMessageWriter.write(org.reactivestreams.Publisher<? extends PartEvent> partDataStream, cn.taketoday.core.ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage outputMessage, Map<String, Object> hints) reactor.core.publisher.Mono<Void>PartHttpMessageWriter.write(org.reactivestreams.Publisher<? extends Part> parts, cn.taketoday.core.ResolvableType elementType, MediaType mediaType, ReactiveHttpOutputMessage outputMessage, Map<String, Object> hints) private reactor.core.publisher.Mono<Void>MultipartHttpMessageWriter.writeMultipart(cn.taketoday.util.MultiValueMap<String, ?> map, ReactiveHttpOutputMessage outputMessage, MediaType mediaType, Map<String, Object> hints) -
cn.taketoday.http.codec.protobuf中ReactiveHttpOutputMessage的使用
-
cn.taketoday.http.server.reactive中ReactiveHttpOutputMessage的使用
修饰符和类型类说明classAbstract base class for listener-based server responses, e.g.classBase class forServerHttpResponseimplementations.classServerHttpResponsedecorator for HTTP HEAD requests.private static final class(专用程序包) classAdaptServerHttpResponseto theHttpServerResponse.(专用程序包) classAdaptServerHttpResponseto theHttpServerResponse.classWraps anotherServerHttpResponseand delegates all methods to it.(专用程序包) classAdaptServerHttpResponseto the ServletHttpServletResponse.private static final class(专用程序包) classAdaptServerHttpResponseto the UndertowHttpServerExchange. -
cn.taketoday.web.reactive.function中ReactiveHttpOutputMessage的使用
修饰符和类型接口说明interfaceBodyInserter<T,M extends ReactiveHttpOutputMessage> A combination of functions that can populate aReactiveHttpOutputMessagebody.修饰符和类型字段说明private static final BodyInserter<Void,ReactiveHttpOutputMessage> BodyInserters.EMPTY_INSERTER修饰符和类型方法说明private static <M extends ReactiveHttpOutputMessage>
reactor.core.publisher.Mono<Void>BodyInserters.writeWithMessageWriters(M outputMessage, BodyInserter.Context context, Object body, cn.taketoday.core.ResolvableType bodyType, cn.taketoday.core.ReactiveAdapter adapter) 返回变量类型为ReactiveHttpOutputMessage的类型的cn.taketoday.web.reactive.function中的方法修饰符和类型方法说明static <T> BodyInserter<T,ReactiveHttpOutputMessage> BodyInserters.empty()Inserter that does not write.static <T extends org.reactivestreams.Publisher<cn.taketoday.core.io.buffer.DataBuffer>>
BodyInserter<T,ReactiveHttpOutputMessage> BodyInserters.fromDataBuffers(T publisher) Inserter to write the givenPublisher<DataBuffer>to the body.static <T> BodyInserter<T,ReactiveHttpOutputMessage> BodyInserters.fromProducer(T producer, cn.taketoday.core.ParameterizedTypeReference<?> elementTypeRef) Inserter to write the given producer of value(s) which must be aPublisheror another producer adaptable to aPublisherviaReactiveAdapterRegistry.static <T> BodyInserter<T,ReactiveHttpOutputMessage> BodyInserters.fromProducer(T producer, Class<?> elementClass) Inserter to write the given producer of value(s) which must be aPublisheror another producer adaptable to aPublisherviaReactiveAdapterRegistry.static <T,P extends org.reactivestreams.Publisher<T>>
BodyInserter<P,ReactiveHttpOutputMessage> BodyInserters.fromPublisher(P publisher, cn.taketoday.core.ParameterizedTypeReference<T> elementTypeRef) Inserter to write the givenPublisher.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 extends cn.taketoday.core.io.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.修饰符和类型方法说明private static <T> reactor.core.publisher.Mono<Void>BodyInserters.write(org.reactivestreams.Publisher<? extends T> input, cn.taketoday.core.ResolvableType type, MediaType mediaType, ReactiveHttpOutputMessage message, BodyInserter.Context context, HttpMessageWriter<T> writer)