接口的使用
cn.taketoday.web.reactive.function.BodyInserter
使用BodyInserter的程序包
程序包
说明
Provides a foundation for both the reactive client and server subpackages.
Provides a reactive
WebClient
that builds on top of the
cn.taketoday.http.client.reactive reactive HTTP adapter layer.-
cn.taketoday.web.reactive.function中BodyInserter的使用
修饰符和类型接口说明static interfaceExtension ofBodyInserterthat allows for adding form data or multipart form data.static interfaceExtension ofBodyInserters.FormInserterthat allows for adding asynchronous parts.修饰符和类型类说明private static classprivate static class修饰符和类型字段说明private static final BodyInserter<Void,ReactiveHttpOutputMessage> BodyInserters.EMPTY_INSERTER修饰符和类型方法说明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,S extends org.reactivestreams.Publisher<ServerSentEvent<T>>>
BodyInserter<S,ServerHttpResponse> BodyInserters.fromServerSentEvents(S eventsPublisher) Inserter to write the givenServerSentEventpublisher.static <T> BodyInserter<T,ReactiveHttpOutputMessage> BodyInserters.fromValue(T body) Inserter to write the given value. -
cn.taketoday.web.reactive.function.client中BodyInserter的使用
修饰符和类型字段说明private BodyInserter<?,? super ClientHttpRequest> DefaultClientRequestBuilder.bodyprivate final BodyInserter<?,? super ClientHttpRequest> DefaultClientRequestBuilder.BodyInserterRequest.bodyprivate BodyInserter<?,? super ClientHttpRequest> DefaultWebClient.DefaultRequestBodyUriSpec.inserter修饰符和类型方法说明BodyInserter<?,? super ClientHttpRequest> ClientRequest.body()Return the body inserter of this request.BodyInserter<?,? super ClientHttpRequest> DefaultClientRequestBuilder.BodyInserterRequest.body()修饰符和类型方法说明ClientRequest.Builder.body(BodyInserter<?, ? super ClientHttpRequest> inserter) Set the body of the request to the givenBodyInserter.DefaultClientRequestBuilder.body(BodyInserter<?, ? super ClientHttpRequest> inserter) DefaultWebClient.DefaultRequestBodyUriSpec.body(BodyInserter<?, ? super ClientHttpRequest> inserter) WebClient.RequestBodySpec.body(BodyInserter<?, ? super ClientHttpRequest> inserter) Set the body of the request using the given body inserter.限定符构造器说明BodyInserterRequest(HttpMethod method, URI url, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, String> cookies, BodyInserter<?, ? super ClientHttpRequest> body, Map<String, Object> attributes, Consumer<ClientHttpRequest> httpRequestConsumer)