程序包 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.接口概要 接口 说明 ClientRequest Represents a typed, immutable, client-side HTTP request, as executed by theExchangeFunction
.ClientRequest.Builder Defines a builder for a request.ClientResponse Represents an HTTP response, as returned byWebClient
and alsoExchangeFunction
.ClientResponse.Builder Defines a builder for a response.ClientResponse.Headers Represents the headers of the HTTP response.ExchangeFilterFunction Represents a function that filters an exchange function.ExchangeFunction Represents a function that exchanges a request for a (delayed) ClientResponse.ExchangeStrategies Provides strategies for use in anExchangeFunction
.ExchangeStrategies.Builder A mutable builder for anExchangeStrategies
.WebClient Non-blocking, reactive client to perform HTTP requests, exposing a fluent, reactive API over underlying HTTP client libraries such as Reactor Netty.WebClient.Builder A mutable builder for creating aWebClient
.WebClient.RequestBodySpec Contract for specifying request headers and body leading up to the exchange.WebClient.RequestBodyUriSpec 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.WebClient.ResponseSpec Contract for specifying response operations following the exchange.WebClient.UriSpec<S extends WebClient.RequestHeadersSpec<?>> Contract for specifying the URI for a request.类概要 类 说明 ExchangeFilterFunctions Static factory methods providing access to built-in implementations ofExchangeFilterFunction
for basic authentication, error handling, etc.ExchangeFilterFunctions.Credentials 已过时。 as of Spring 5.1 in favor of usingHttpHeaders.setBasicAuth(String, String)
while building the request.ExchangeFunctions Static factory methods to create anExchangeFunction
.