public interface StreamingHttpClient extends FilterableStreamingHttpClient
HttpClient but that accepts StreamingHttpRequest and returns
StreamingHttpResponse.| Modifier and Type | Method and Description |
|---|---|
BlockingHttpClient |
asBlockingClient()
Convert this
StreamingHttpClient to the BlockingHttpClient API. |
BlockingStreamingHttpClient |
asBlockingStreamingClient()
Convert this
StreamingHttpClient to the BlockingStreamingHttpClient API. |
HttpClient |
asClient()
Convert this
StreamingHttpClient to the HttpClient API. |
Single<ReservedStreamingHttpConnection> |
reserveConnection(HttpRequestMetaData metaData)
Reserve a
StreamingHttpConnection based on provided HttpRequestMetaData. |
close, closeGracefully, executionContext, httpResponseFactory, requestSingle<ReservedStreamingHttpConnection> reserveConnection(HttpRequestMetaData metaData)
StreamingHttpConnection based on provided HttpRequestMetaData.
If a new connection should be opened instead of potentially reusing an already established one, the
HttpContextKeys.HTTP_FORCE_NEW_CONNECTION must be set.
reserveConnection in interface FilterableStreamingHttpClientmetaData - Allows the underlying layers to know what StreamingHttpConnections are valid to
reserve for future requests with the same HttpRequestMetaData.
For example this may provide some insight into shard or other info.Single that provides the ReservedStreamingHttpConnection upon completion.HttpContextKeys.HTTP_FORCE_NEW_CONNECTIONHttpClient asClient()
StreamingHttpClient to the HttpClient API.
This API is provided for convenience. It is recommended that
filters are implemented using the StreamingHttpClient asynchronous API for maximum portability.
HttpClient representation of this StreamingHttpRequester.BlockingStreamingHttpClient asBlockingStreamingClient()
StreamingHttpClient to the BlockingStreamingHttpClient API.
This API is provided for convenience for a more familiar sequential programming model. It is recommended that
filters are implemented using the StreamingHttpClient asynchronous API for maximum portability.
BlockingStreamingHttpClient representation of this StreamingHttpClient.BlockingHttpClient asBlockingClient()
StreamingHttpClient to the BlockingHttpClient API.
This API is provided for convenience for a more familiar sequential programming model. It is recommended that
filters are implemented using the StreamingHttpClient asynchronous API for maximum portability.
BlockingHttpClient representation of this StreamingHttpClient.