public static interface HttpClient.RequestSender extends HttpClient.ResponseReceiver<HttpClient.RequestSender>
Publisher
based, HttpClient.ResponseReceiver
API.Modifier and Type | Method and Description |
---|---|
HttpClient.ResponseReceiver<?> |
send(java.util.function.BiFunction<? super HttpClientRequest,? super NettyOutbound,? extends Publisher<Void>> sender)
Configure a body to send on request using the
NettyOutbound sending
builder and returning a Publisher to signal end of the request. |
HttpClient.ResponseReceiver<?> |
send(Publisher<? extends ByteBuf> body)
Configure a body to send on request.
|
default HttpClient.ResponseReceiver<?> |
sendForm(java.util.function.BiConsumer<? super HttpClientRequest,HttpClientForm> formCallback)
Prepare to send an HTTP Form including Multipart encoded Form which support
chunked file upload.
|
HttpClient.ResponseReceiver<?> |
sendForm(java.util.function.BiConsumer<? super HttpClientRequest,HttpClientForm> formCallback,
java.util.function.Consumer<Flux<Long>> progress)
Prepare to send an HTTP Form including Multipart encoded Form which support
chunked file upload.
|
response, response, responseConnection, responseContent, responseSingle
uri, uri
HttpClient.ResponseReceiver<?> send(Publisher<? extends ByteBuf> body)
body
- a body publisher that will terminate the request on completeHttpClient.ResponseReceiver
HttpClient.ResponseReceiver<?> send(java.util.function.BiFunction<? super HttpClientRequest,? super NettyOutbound,? extends Publisher<Void>> sender)
NettyOutbound
sending
builder and returning a Publisher
to signal end of the request.sender
- a bifunction given the outgoing request and the sending
NettyOutbound
, returns a publisher that will terminate the request
body on completeHttpClient.ResponseReceiver
default HttpClient.ResponseReceiver<?> sendForm(java.util.function.BiConsumer<? super HttpClientRequest,HttpClientForm> formCallback)
HttpClientForm.multipart(boolean)
.formCallback
- called when form generator is createdHttpClient.ResponseReceiver
HttpClient.ResponseReceiver<?> sendForm(java.util.function.BiConsumer<? super HttpClientRequest,HttpClientForm> formCallback, @Nullable java.util.function.Consumer<Flux<Long>> progress)
HttpClientForm.multipart(boolean)
.formCallback
- called when form generator is createdprogress
- called after form is being sent and passed with a Flux
of latest in-flight or uploaded bytesHttpClient.ResponseReceiver