接口的使用
org.springframework.http.client.reactive.ClientHttpResponse
使用ClientHttpResponse的程序包 程序包 说明 org.springframework.http.client.reactive Abstractions for reactive HTTP client support includingClientHttpRequest
andClientHttpResponse
as well as aClientHttpConnector
.org.springframework.mock.http.client.reactive Mock implementations of reactive HTTP client contracts.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.http.client.reactive中ClientHttpResponse的使用
实现ClientHttpResponse的org.springframework.http.client.reactive中的类 修饰符和类型 类 说明 class
ClientHttpResponseDecorator
Wraps anotherClientHttpResponse
and delegates all methods to it.返回ClientHttpResponse的org.springframework.http.client.reactive中的方法 修饰符和类型 方法 说明 ClientHttpResponse
ClientHttpResponseDecorator. getDelegate()
返回变量类型为ClientHttpResponse的类型的org.springframework.http.client.reactive中的方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<ClientHttpResponse>
ClientHttpConnector. connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback)
Connect to the origin server using the givenHttpMethod
andURI
and apply the givenrequestCallback
when the HTTP request of the underlying API can be initialized and written to.reactor.core.publisher.Mono<ClientHttpResponse>
JettyClientHttpConnector. connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback)
reactor.core.publisher.Mono<ClientHttpResponse>
ReactorClientHttpConnector. connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback)
参数类型为ClientHttpResponse的org.springframework.http.client.reactive中的构造器 构造器 说明 ClientHttpResponseDecorator(ClientHttpResponse delegate)
org.springframework.mock.http.client.reactive中ClientHttpResponse的使用
实现ClientHttpResponse的org.springframework.mock.http.client.reactive中的类 修饰符和类型 类 说明 class
MockClientHttpResponse
Mock implementation ofClientHttpResponse
.org.springframework.test.web.reactive.server中ClientHttpResponse的使用
返回ClientHttpResponse的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 ClientHttpResponse
HttpHandlerConnector.FailureAfterResponseCompletedException. getCompletedResponse()
返回变量类型为ClientHttpResponse的类型的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<ClientHttpResponse>
HttpHandlerConnector. connect(HttpMethod httpMethod, URI uri, Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback)
org.springframework.web.reactive.function.client中ClientHttpResponse的使用
类型变量类型为ClientHttpResponse的org.springframework.web.reactive.function.client中的方法参数 修饰符和类型 方法 说明 <T> T
ClientResponse. body(BodyExtractor<T,? super ClientHttpResponse> extractor)
Extract the body with the givenBodyExtractor
.org.springframework.web.reactive.function.client.support中ClientHttpResponse的使用
类型变量类型为ClientHttpResponse的org.springframework.web.reactive.function.client.support中的方法参数 修饰符和类型 方法 说明 <T> T
ClientResponseWrapper. body(BodyExtractor<T,? super ClientHttpResponse> extractor)