Package reactor.netty.http.client
Interface HttpClient.WebsocketSender
- All Superinterfaces:
HttpClient.UriConfiguration<HttpClient.WebsocketSender>
,HttpClient.WebsocketReceiver<HttpClient.WebsocketSender>
- Enclosing class:
- HttpClient
public static interface HttpClient.WebsocketSender
extends HttpClient.WebsocketReceiver<HttpClient.WebsocketSender>
Allow a request body configuration before calling one of the terminal,
Publisher
based, HttpClient.WebsocketReceiver
API.-
Method Summary
Methods inherited from interface reactor.netty.http.client.HttpClient.UriConfiguration
uri, uri, uri
Methods inherited from interface reactor.netty.http.client.HttpClient.WebsocketReceiver
connect, handle, receive
-
Method Details
-
send
HttpClient.WebsocketReceiver<?> send(Function<? super HttpClientRequest, ? extends Publisher<Void>> sender) Configure headers to send on request using the returnedPublisher
to signal end of the request.- Parameters:
sender
- a bifunction given the outgoing request returns a publisher that will terminate the request body on complete- Returns:
- a new
HttpClient.ResponseReceiver
-