接口的使用
org.springframework.http.client.reactive.ClientHttpResponse
使用ClientHttpResponse的程序包 程序包 说明 org.springframework.http.client.reactive Abstractions for reactive HTTP client support includingClientHttpRequestandClientHttpResponseas 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 reactiveWebClientthat builds on top of theorg.springframework.http.client.reactivereactive HTTP adapter layer.org.springframework.web.reactive.function.client.support Classes supporting theorg.springframework.web.reactive.function.clientpackage.org.springframework.http.client.reactive中ClientHttpResponse的使用
实现ClientHttpResponse的org.springframework.http.client.reactive中的类 修饰符和类型 类 说明 classClientHttpResponseDecoratorWraps anotherClientHttpResponseand delegates all methods to it.返回ClientHttpResponse的org.springframework.http.client.reactive中的方法 修饰符和类型 方法 说明 ClientHttpResponseClientHttpResponseDecorator. 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 givenHttpMethodandURIand apply the givenrequestCallbackwhen 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中的类 修饰符和类型 类 说明 classMockClientHttpResponseMock implementation ofClientHttpResponse.org.springframework.test.web.reactive.server中ClientHttpResponse的使用
返回ClientHttpResponse的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 ClientHttpResponseHttpHandlerConnector.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> TClientResponse. 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> TClientResponseWrapper. body(BodyExtractor<T,? super ClientHttpResponse> extractor)