Uses of Interface
org.springframework.web.reactive.function.client.ClientResponse.Builder
Packages that use ClientResponse.Builder
Package
Description
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer.-
Uses of ClientResponse.Builder in org.springframework.web.reactive.function.client
Methods in org.springframework.web.reactive.function.client that return ClientResponse.BuilderModifier and TypeMethodDescriptionSet the body of the response to the UTF-8 encoded bytes of the given string.ClientResponse.Builder.body(Function<reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer>, reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer>> transformer) Transform the response body, if set in the builder.ClientResponse.Builder.body(reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> body) Set the body of the response.Add a cookie with the given name and value(s).ClientResponse.Builder.cookies(Consumer<org.springframework.util.MultiValueMap<String, org.springframework.http.ResponseCookie>> cookiesConsumer) Manipulate this response's cookies with the given consumer.static ClientResponse.BuilderClientResponse.create(int statusCode, ExchangeStrategies strategies) Create a response builder with the given raw status code and strategies for reading the body.static ClientResponse.BuilderClientResponse.create(org.springframework.http.HttpStatusCode statusCode) Create a response builder with the given status code and using default strategies for reading the body.static ClientResponse.BuilderClientResponse.create(org.springframework.http.HttpStatusCode statusCode, List<org.springframework.http.codec.HttpMessageReader<?>> messageReaders) Create a response builder with the given status code and message body readers.static ClientResponse.BuilderClientResponse.create(org.springframework.http.HttpStatusCode statusCode, ExchangeStrategies strategies) Create a response builder with the given status code and strategies for reading the body.static ClientResponse.BuilderClientResponse.from(ClientResponse other) Deprecated.Add the given header value(s) under the given name.Manipulate this response's headers with the given consumer.default ClientResponse.BuilderClientResponse.mutate()Return a builder to mutate this response, for example to change the status, headers, cookies, and replace or transform the body.ClientResponse.Builder.rawStatusCode(int statusCode) Set the raw status code of the response.ClientResponse.Builder.request(org.springframework.http.HttpRequest request) Set the request associated with the response.ClientResponse.Builder.statusCode(org.springframework.http.HttpStatusCode statusCode) Set the status code of the response.
ClientResponse.mutate().