Publisher based, ResponseReceiver API.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Function | |
| pack-priv static final Function |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Mono | |
| pack-priv static void | |
| protected HttpClient | duplicate()
Overrides reactor. Transport inheriting the current configuration.
|
| public Mono | response()
Implements reactor. HttpClientResponse
Will automatically close the response if necessary. |
| public <V> Flux | response(BiFunction<? super HttpClientResponse, ? super ByteBufFlux, ? extends Publisher<V>>
extracting receiver receiver)Implements reactor. HttpClientResponse and body
ByteBufFlux.
|
| public <V> Flux | responseConnection(BiFunction<? super HttpClientResponse, ? super Connection, ? extends Publisher<V>>
extracting receiver receiver)Implements reactor. HttpClientResponse and
underlying Connection.
|
| public ByteBufFlux | responseContent()
Implements reactor. ByteBufFlux.
|
| public <V> Mono | responseSingle(BiFunction<? super HttpClientResponse, ? super ByteBufMono, ? extends Mono<V>>
extracting receiver receiver)Implements reactor. HttpClientResponse and
aggregated body ByteBufMono.
|
| public HttpClientFinalizer | send(BiFunction<? super HttpClientRequest, ? super NettyOutbound, ? extends Publisher<Void>>
a bifunction given the outgoing request and the sending
sender)NettyOutbound, returns a publisher that will terminate the request
body on completeImplements reactor. NettyOutbound sending
builder and returning a Publisher to signal end of the request.
|
| public HttpClientFinalizer | send(Publisher<? extends ByteBuf>
a body publisher that will terminate the request on complete requestBody)Implements reactor. |
| public HttpClientFinalizer | sendForm(BiConsumer<? super HttpClientRequest, HttpClientForm>
called when form generator is created formCallback, Consumer<Flux<Long>> called after form is being sent and passed with a progress)Flux of the latest in-flight or uploaded bytesImplements reactor. |
| public HttpClient. | uri(Mono<String>
target URI, if starting with "/" it will be prepended with
uri)baseUrl(String) when availableImplements reactor. |
| public HttpClient. | uri(String
target URI, if starting with "/" it will be prepended with
uri)baseUrl(String) when availableImplements reactor. |
| public HttpClient. | uri(URI
target URI which is an absolute, fully constructed uri)URIImplements reactor. |
| contentReceiver | back to summary |
|---|---|
| pack-priv static final Function<ChannelOperations<?, ?>, Flux<?>> contentReceiver | |
| RESPONSE_ONLY | back to summary |
|---|---|
| pack-priv static final Function<HttpClientOperations, HttpClientResponse> RESPONSE_ONLY | |
| HttpClientFinalizer | back to summary |
|---|---|
| pack-priv HttpClientFinalizer(HttpClientConfig config) | |
| _connect | back to summary |
|---|---|
pack-priv Mono
| |
| discard | back to summary |
|---|---|
| pack-priv static void discard(HttpClientOperations c) | |
| duplicate | back to summary |
|---|---|
| protected HttpClient duplicate() Overrides reactor. Doc from reactor. Return a new
| |
| response | back to summary |
|---|---|
| public Mono Implements reactor. Doc from reactor. Return the response status and headers as Will automatically close the response if necessary. Note Will automatically close low-level network connection after returned
| |
| response | back to summary |
|---|---|
| public <V> Flux Implements reactor. Doc from reactor. Extract a response flux from the given Will automatically close the response if necessary after the returned
| |
| responseConnection | back to summary |
|---|---|
| public <V> Flux Implements reactor. Doc from reactor. Extract a response flux from the given The connection will not automatically
| |
| responseContent | back to summary |
|---|---|
| public ByteBufFlux responseContent() Implements reactor. Doc from reactor. Return the response body chunks as Will automatically close the response if necessary after the returned
| |
| responseSingle | back to summary |
|---|---|
| public <V> Mono Implements reactor. Doc from reactor. Extract a response mono from the given Will automatically close the response if necessary after the returned
| |
| send | back to summary |
|---|---|
| public HttpClientFinalizer send(BiFunction<? super HttpClientRequest, ? super NettyOutbound, ? extends Publisher<Void>> sender) Implements reactor. Doc from reactor. Configure a body to send on request using the Note The sender
| |
| send | back to summary |
|---|---|
| public HttpClientFinalizer send(Publisher<? extends ByteBuf> requestBody) Implements reactor. Doc from reactor. Configure a body to send on request. Note The body Note For redirect requests, sensitive headers
| |
| sendForm | back to summary |
|---|---|
| public HttpClientFinalizer sendForm(BiConsumer<? super HttpClientRequest, HttpClientForm> formCallback, Consumer<Flux<Long>> progress) Implements reactor. Doc from reactor. Prepare to send an HTTP Form including Multipart encoded Form which support
chunked file upload. It will by default be encoded as Multipart but can be
adapted via Note The HTTP Form passed in will be invoked also for redirect requests
when Note For redirect requests, sensitive headers
| |
| uri | back to summary |
|---|---|
| public HttpClient. Implements reactor. Doc from reactor. Configure URI to use for this request/response on subscribe.
| |
| uri | back to summary |
|---|---|
| public HttpClient. Implements reactor. Doc from reactor. Configure URI to use for this request/response.
| |
| uri | back to summary |
|---|---|
| public HttpClient. Implements reactor. Doc from reactor. Configure URI to use for this request/response. Note
| |