接口的使用
cn.taketoday.web.reactive.function.client.ClientRequest.Builder
使用ClientRequest.Builder的程序包
程序包
说明
Provides a reactive
WebClient
that builds on top of the
cn.taketoday.http.client.reactive reactive HTTP adapter layer.-
cn.taketoday.web.reactive.function.client中ClientRequest.Builder的使用
修饰符和类型方法说明Set the attribute with the given name to the given value.ClientRequest.Builder.attributes(Consumer<Map<String, Object>> attributesConsumer) Manipulate the request attributes with the given consumer.DefaultClientRequestBuilder.attributes(Consumer<Map<String, Object>> attributesConsumer) ClientRequest.Builder.body(BodyInserter<?, ? super ClientHttpRequest> inserter) Set the body of the request to the givenBodyInserter.<S,P extends org.reactivestreams.Publisher<S>>
ClientRequest.BuilderClientRequest.Builder.body(P publisher, cn.taketoday.core.ParameterizedTypeReference<S> typeReference) Set the body of the request to the givenPublisherand return it.<S,P extends org.reactivestreams.Publisher<S>>
ClientRequest.BuilderSet the body of the request to the givenPublisherand return it.DefaultClientRequestBuilder.body(BodyInserter<?, ? super ClientHttpRequest> inserter) <S,P extends org.reactivestreams.Publisher<S>>
ClientRequest.BuilderDefaultClientRequestBuilder.body(P publisher, cn.taketoday.core.ParameterizedTypeReference<S> typeReference) <S,P extends org.reactivestreams.Publisher<S>>
ClientRequest.BuilderAdd a cookie with the given name and value(s).ClientRequest.Builder.cookies(Consumer<cn.taketoday.util.MultiValueMap<String, String>> cookiesConsumer) Manipulate this request's cookies with the given consumer.DefaultClientRequestBuilder.cookies(Consumer<cn.taketoday.util.MultiValueMap<String, String>> cookiesConsumer) static ClientRequest.BuilderClientRequest.create(HttpMethod method, URI url) Create a request builder with the given HTTP method and url.static ClientRequest.BuilderClientRequest.from(ClientRequest other) Create a builder initialized with the HTTP method, url, headers, cookies, attributes, and body of the given request.Add the given header value(s) under the given name.ClientRequest.Builder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this request's headers with the given consumer.DefaultClientRequestBuilder.headers(Consumer<HttpHeaders> headersConsumer) ClientRequest.Builder.httpRequest(Consumer<ClientHttpRequest> requestConsumer) Callback for access to theClientHttpRequestthat in turn provides access to the native request of the underlying HTTP library.DefaultClientRequestBuilder.httpRequest(Consumer<ClientHttpRequest> requestConsumer) private ClientRequest.BuilderDefaultWebClient.DefaultRequestBodyUriSpec.initRequestBuilder()ClientRequest.Builder.method(HttpMethod method) Set the method of the request.DefaultClientRequestBuilder.method(HttpMethod method) Set the url of the request.