public interface ReactorHttpClient
| 限定符和类型 | 方法和说明 |
|---|---|
static ReactorHttpClient |
create(org.asynchttpclient.AsyncHttpClient httpClient)
create default http client
|
<T> reactor.core.publisher.Mono<T> |
prepare(org.asynchttpclient.Request request,
org.asynchttpclient.AsyncHandler<T> handler)
Prepares the given
request. |
static ReactorHttpClient create(org.asynchttpclient.AsyncHttpClient httpClient)
httpClient - <T> reactor.core.publisher.Mono<T> prepare(org.asynchttpclient.Request request,
org.asynchttpclient.AsyncHandler<T> handler)
request. For each subscription to the returned
Maybe, a new HTTP request will be executed and the results of
AsyncHandlers obtained from handlerSupplier will be emitted.T - the result type produced by handlers produced by
handlerSupplier and emitted by the returned Maybe
instancerequest - the request that is to be executedhandlerSupplier - supplies the desired AsyncHandler instances that are used
to produce resultsMaybe that executes request upon subscription and
that emits the results produced by the supplied handersNullPointerException - if at least one of the parameters is nullCopyright © 2020. All rights reserved.