public interface StreamingHttpClient extends FilterableStreamingHttpClient, GracefulAutoCloseable
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. |
default void |
close() |
default void |
closeGracefully() |
Single<StreamingHttpResponse> |
request(StreamingHttpRequest request)
Send a
request. |
Single<ReservedStreamingHttpConnection> |
reserveConnection(HttpExecutionStrategy strategy,
HttpRequestMetaData metaData)
Deprecated.
|
Single<ReservedStreamingHttpConnection> |
reserveConnection(HttpRequestMetaData metaData)
Reserve a
StreamingHttpConnection based on provided HttpRequestMetaData. |
executionContext, httpResponseFactory, requestSingle<StreamingHttpResponse> request(StreamingHttpRequest request)
request.request in interface StreamingHttpRequesterrequest - the request to send.Single<ReservedStreamingHttpConnection> reserveConnection(HttpRequestMetaData metaData)
StreamingHttpConnection based on provided HttpRequestMetaData.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.@Deprecated Single<ReservedStreamingHttpConnection> reserveConnection(HttpExecutionStrategy strategy, HttpRequestMetaData metaData)
FilterableStreamingHttpClientStreamingHttpConnection based on provided HttpRequestMetaData.reserveConnection in interface FilterableStreamingHttpClientstrategy - HttpExecutionStrategy to use.metaData - 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.HttpClient 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.default void close()
throws Exception
close in interface AutoCloseableExceptiondefault void closeGracefully()
throws Exception
closeGracefully in interface GracefulAutoCloseableException