接口的使用
org.springframework.web.reactive.function.client.ExchangeFunction
使用ExchangeFunction的程序包 程序包 说明 org.springframework.web.reactive.function.client Provides a reactiveWebClient
that builds on top of theorg.springframework.http.client.reactive
reactive HTTP adapter layer.org.springframework.web.reactive.function.client中ExchangeFunction的使用
返回ExchangeFunction的org.springframework.web.reactive.function.client中的方法 修饰符和类型 方法 说明 default ExchangeFunction
ExchangeFilterFunction. apply(ExchangeFunction exchange)
Apply this filter to the given ExchangeFunction, resulting in a filtered exchange function.static ExchangeFunction
ExchangeFunctions. create(ClientHttpConnector connector)
Create anExchangeFunction
with the givenClientHttpConnector
.static ExchangeFunction
ExchangeFunctions. create(ClientHttpConnector connector, ExchangeStrategies strategies)
Create anExchangeFunction
with the givenClientHttpConnector
andExchangeStrategies
.default ExchangeFunction
ExchangeFunction. filter(ExchangeFilterFunction filter)
Filters this exchange function with the givenExchangeFilterFunction
, resulting in a filteredExchangeFunction
.参数类型为ExchangeFunction的org.springframework.web.reactive.function.client中的方法 修饰符和类型 方法 说明 default ExchangeFunction
ExchangeFilterFunction. apply(ExchangeFunction exchange)
Apply this filter to the given ExchangeFunction, resulting in a filtered exchange function.WebClient.Builder
WebClient.Builder. exchangeFunction(ExchangeFunction exchangeFunction)
reactor.core.publisher.Mono<ClientResponse>
ExchangeFilterFunction. filter(ClientRequest request, ExchangeFunction next)
Apply this filter to the given request and exchange function.