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, responseSingleuri, uriHttpClient.ResponseReceiver<?> send(Publisher<? extends ByteBuf> body)
body - a body publisher that will terminate the request on completeHttpClient.ResponseReceiverHttpClient.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.
Note: the sender BiFunction passed in may implement
HttpClient.RedirectSendHandler to indicate explicitly that it has special handling
for redirect requests. This is entirely optional, and redirect request handling
may also be handled globally via HttpClient.followRedirect(boolean, Consumer) or
HttpClient.followRedirect(BiPredicate, Consumer).
sender - a bifunction given the outgoing request and the sending
NettyOutbound, returns a publisher that will terminate the request
body on completeHttpClient.ResponseReceiverdefault HttpClient.ResponseReceiver<?> sendForm(java.util.function.BiConsumer<? super HttpClientRequest,HttpClientForm> formCallback)
HttpClientForm.multipart(boolean).formCallback - called when form generator is createdHttpClient.ResponseReceiverHttpClient.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