类 WiretapConnector
java.lang.Object
cn.taketoday.test.web.reactive.server.WiretapConnector
- 所有已实现的接口:
cn.taketoday.http.client.reactive.ClientHttpConnector
class WiretapConnector
extends Object
implements cn.taketoday.http.client.reactive.ClientHttpConnector
Decorate another
ClientHttpConnector with the purpose of
intercepting, capturing, and exposing actual request and response data
transmitted to and received from the server.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Harry Yang
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明private static classprivate static classClientHttpRequestDecorator that intercepts and saves the request body.private static classClientHttpResponseDecorator that intercepts and saves the response body.(专用程序包) static final classTap into a Publisher of data buffers to save the content. -
字段概要
字段修饰符和类型字段说明private final cn.taketoday.http.client.reactive.ClientHttpConnectorprivate final Map<String,WiretapConnector.ClientExchangeInfo> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明reactor.core.publisher.Mono<cn.taketoday.http.client.reactive.ClientHttpResponse>connect(cn.taketoday.http.HttpMethod method, URI uri, Function<? super cn.taketoday.http.client.reactive.ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) (专用程序包) ExchangeResultgetExchangeResult(String requestId, String uriTemplate, Duration timeout) Create theExchangeResultfor the given "request-id" header value.
-
字段详细资料
-
delegate
private final cn.taketoday.http.client.reactive.ClientHttpConnector delegate -
exchanges
-
-
构造器详细资料
-
WiretapConnector
WiretapConnector(cn.taketoday.http.client.reactive.ClientHttpConnector delegate)
-
-
方法详细资料
-
connect
public reactor.core.publisher.Mono<cn.taketoday.http.client.reactive.ClientHttpResponse> connect(cn.taketoday.http.HttpMethod method, URI uri, Function<? super cn.taketoday.http.client.reactive.ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) - 指定者:
connect在接口中cn.taketoday.http.client.reactive.ClientHttpConnector
-
getExchangeResult
Create theExchangeResultfor the given "request-id" header value.
-