接口的使用
org.springframework.web.reactive.function.client.ExchangeStrategies
使用ExchangeStrategies的程序包 程序包 说明 org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient
.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.support Classes supporting theorg.springframework.web.reactive.function.client
package.org.springframework.test.web.reactive.server中ExchangeStrategies的使用
参数类型为ExchangeStrategies的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 WebTestClient.Builder
WebTestClient.Builder. exchangeStrategies(ExchangeStrategies strategies)
Configure theExchangeStrategies
to use.org.springframework.web.reactive.function.client中ExchangeStrategies的使用
返回ExchangeStrategies的org.springframework.web.reactive.function.client中的方法 修饰符和类型 方法 说明 ExchangeStrategies
ExchangeStrategies.Builder. build()
Builds theExchangeStrategies
.ExchangeStrategies
ClientResponse. strategies()
Return the strategies used to convert the body of this response.static ExchangeStrategies
ExchangeStrategies. withDefaults()
Return anExchangeStrategies
instance with default configuration provided byClientCodecConfigurer
.参数类型为ExchangeStrategies的org.springframework.web.reactive.function.client中的方法 修饰符和类型 方法 说明 static ClientResponse.Builder
ClientResponse. create(int statusCode, ExchangeStrategies strategies)
Create a response builder with the given raw status code and strategies for reading the body.static ClientResponse.Builder
ClientResponse. create(HttpStatus statusCode, ExchangeStrategies strategies)
Create a response builder with the given status code and strategies for reading the body.static ExchangeFunction
ExchangeFunctions. create(ClientHttpConnector connector, ExchangeStrategies strategies)
Create anExchangeFunction
with the givenClientHttpConnector
andExchangeStrategies
.WebClient.Builder
WebClient.Builder. exchangeStrategies(ExchangeStrategies strategies)
Configure theExchangeStrategies
to use.reactor.core.publisher.Mono<Void>
ClientRequest. writeTo(ClientHttpRequest request, ExchangeStrategies strategies)
Write this request to the givenClientHttpRequest
.org.springframework.web.reactive.function.client.support中ExchangeStrategies的使用
返回ExchangeStrategies的org.springframework.web.reactive.function.client.support中的方法 修饰符和类型 方法 说明 ExchangeStrategies
ClientResponseWrapper. strategies()