Uses of Interface
org.springframework.web.reactive.function.client.ClientRequest.Builder
Package
Description
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive
reactive HTTP adapter layer.-
Uses of ClientRequest.Builder in org.springframework.web.reactive.function.client
Modifier and TypeMethodDescriptionSet 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.ClientRequest.Builder.body
(BodyInserter<?, ? super ClientHttpRequest> inserter) Set the body of the request to the givenBodyInserter
.<S,
P extends Publisher<S>>
ClientRequest.BuilderSet the body of the request to the givenPublisher
and return it.<S,
P extends Publisher<S>>
ClientRequest.BuilderClientRequest.Builder.body
(P publisher, ParameterizedTypeReference<S> typeReference) Set the body of the request to the givenPublisher
and return it.Add a cookie with the given name and value(s).ClientRequest.Builder.cookies
(Consumer<MultiValueMap<String, String>> cookiesConsumer) Manipulate this request's cookies with the given consumer.static ClientRequest.Builder
ClientRequest.create
(HttpMethod method, URI url) Create a request builder with the given HTTP method and url.static ClientRequest.Builder
ClientRequest.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.ClientRequest.Builder.httpRequest
(Consumer<ClientHttpRequest> requestConsumer) Callback for access to theClientHttpRequest
that in turn provides access to the native request of the underlying HTTP library.ClientRequest.Builder.method
(HttpMethod method) Set the method of the request.static ClientRequest.Builder
ClientRequest.method
(HttpMethod method, URI url) Deprecated.Set the url of the request.
ClientRequest.create(HttpMethod, URI)