public interface HttpConnection extends HttpRequester
| Modifier and Type | Method and Description |
|---|---|
default BlockingHttpConnection |
asBlockingConnection()
Convert this
HttpConnection to the BlockingHttpConnection API. |
default BlockingStreamingHttpConnection |
asBlockingStreamingConnection()
Convert this
HttpConnection to the BlockingStreamingHttpConnection API. |
StreamingHttpConnection |
asStreamingConnection()
Convert this
HttpConnection to the StreamingHttpConnection API. |
HttpConnectionContext |
connectionContext()
Get the
HttpConnectionContext. |
<T> Publisher<? extends T> |
transportEventStream(HttpEventKey<T> eventKey)
Returns a
Publisher that gives the current value of a transport event as well as subsequent changes to
the event value as long as the PublisherSource.Subscriber has expressed enough demand. |
close, closeGracefully, executionContext, httpResponseFactory, requestHttpConnectionContext connectionContext()
HttpConnectionContext.HttpConnectionContext.<T> Publisher<? extends T> transportEventStream(HttpEventKey<T> eventKey)
Publisher that gives the current value of a transport event as well as subsequent changes to
the event value as long as the PublisherSource.Subscriber has expressed enough demand.
This is designed for events produced by the transport, and consumed by filters interested in transport behavior which is not directly involved in the data path.
T - Type of the event value.eventKey - Name of the event to fetch.Publisher for the event values.StreamingHttpConnection asStreamingConnection()
HttpConnection to the StreamingHttpConnection API.StreamingHttpConnection representation of this HttpConnection.default BlockingStreamingHttpConnection asBlockingStreamingConnection()
HttpConnection to the BlockingStreamingHttpConnection API.BlockingStreamingHttpConnection representation of this HttpConnection.default BlockingHttpConnection asBlockingConnection()
HttpConnection to the BlockingHttpConnection API.BlockingHttpConnection representation of this HttpConnection.