Publisher based, WebsocketReceiver API.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Mono | connect()
Overrides reactor. Implements reactor. Mono of Connection.
|
| protected HttpClient | duplicate()
Overrides reactor. Transport inheriting the current configuration.
|
| public <V> Flux | handle(BiFunction<? super WebsocketInbound, ? super WebsocketOutbound, ? extends Publisher<V>>
extracting receiver receiver)Implements reactor. WebsocketInbound and WebsocketOutbound.
|
| public ByteBufFlux | receive()
Implements reactor. WebsocketInbound.
|
| public WebsocketFinalizer | send(Function<? super HttpClientRequest, ? extends Publisher<Void>>
a bifunction given the outgoing request returns a publisher
that will terminate the request body on complete sender)Implements reactor. Publisher to
signal end of the request.
|
| 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. |
| WebsocketFinalizer | back to summary |
|---|---|
| pack-priv WebsocketFinalizer(HttpClientConfig config) | |
| connect | back to summary |
|---|---|
| public Mono Overrides reactor. Implements reactor. Doc from reactor. Negotiate a websocket upgrade and return a
| |
| duplicate | back to summary |
|---|---|
| protected HttpClient duplicate() Overrides reactor. Doc from reactor. Return a new
| |
| handle | back to summary |
|---|---|
| public <V> Flux Implements reactor. Doc from reactor. Negotiate a websocket upgrade and extract a flux from the given
The connection will not automatically If the upgrade fails, the returned
| |
| receive | back to summary |
|---|---|
| public ByteBufFlux receive() Implements reactor. Doc from reactor. Negotiate a websocket upgrade and extract a flux from the underlying
The connection will be disposed when the underlying subscriber is disposed OR when a close frame has been received, forwarding onComplete to the returned flux subscription. If the upgrade fails, the returned
| |
| send | back to summary |
|---|---|
| public WebsocketFinalizer send(Function<? super HttpClientRequest, ? extends Publisher<Void>> sender) Implements reactor. Doc from reactor. Configure headers to send on request using the returned
| |
| 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
| |