Package org.springframework.web.reactive.function.client
@NonNullApi
@NonNullFields
package org.springframework.web.reactive.function.client
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer.-
ClassDescriptionDocumented
KeyValuesfor theHTTP clientobservations.Represents a typed, immutable, client-side HTTP request, as executed by theExchangeFunction.Defines a builder for a request.Context that holds information for metadata collection during theHTTP client exchange observations.Interface for anObservationConventionrelated toHTTP client exchange observations.Represents an HTTP response, as returned byWebClientand alsoExchangeFunction.Defines a builder for a response.Represents the headers of the HTTP response.Default implementation for aClientRequestObservationConvention, extracting information from theClientRequestObservationContext.Represents a function that filters an exchange function.Static factory methods providing access to built-in implementations ofExchangeFilterFunctionfor basic authentication, error handling, etc.Deprecated.Represents a function that exchanges a request for a (delayed) ClientResponse.Static factory methods to create anExchangeFunction.Provides strategies for use in anExchangeFunction.A mutable builder for anExchangeStrategies.Exception thrown when an unknown (or custom) HTTP status code is received.Non-blocking, reactive client to perform HTTP requests, exposing a fluent, reactive API over underlying HTTP client libraries such as Reactor Netty.A mutable builder for creating aWebClient.Contract for specifying request headers and body leading up to the exchange.Contract for specifying request headers, body and URI for a request.WebClient.RequestHeadersSpec<S extends WebClient.RequestHeadersSpec<S>>Contract for specifying request headers leading up to the exchange.WebClient.RequestHeadersUriSpec<S extends WebClient.RequestHeadersSpec<S>>Contract for specifying request headers and URI for a request.Contract for specifying response operations following the exchange.WebClient.UriSpec<S extends WebClient.RequestHeadersSpec<?>>Contract for specifying the URI for a request.Abstract base class for exception published byWebClientin case of errors.Exceptions that contain actual HTTP request data.Exceptions that contain actual HTTP response data.WebClientResponseExceptionfor HTTP status 502 Bad Gateway.WebClientResponseExceptionfor status HTTP 400 Bad Request.WebClientResponseExceptionfor status HTTP 409 Conflict.WebClientResponseExceptionfor status HTTP 403 Forbidden.WebClientResponseExceptionfor status HTTP 504 Gateway Timeout.WebClientResponseExceptionfor status HTTP 410 Gone.WebClientResponseExceptionfor status HTTP 500 Internal Server Error.WebClientResponseExceptionfor status HTTP 405 Method Not Allowed.WebClientResponseExceptionfor status HTTP 406 Not Acceptable.WebClientResponseExceptionfor status HTTP 404 Not Found.WebClientResponseExceptionfor status HTTP 501 Not Implemented.WebClientResponseExceptionfor status HTTP 503 Service Unavailable.WebClientResponseExceptionfor status HTTP 429 Too Many Requests.WebClientResponseExceptionfor status HTTP 401 Unauthorized.WebClientResponseExceptionfor status HTTP 422 Unprocessable Entity.WebClientResponseExceptionfor status HTTP 415 Unsupported Media Type.
HttpHeaders.setBasicAuth(String, String)while building the request.