public interface StreamingHttpRequester extends StreamingHttpRequestFactory, ListenableAsyncCloseable
HttpRequester but that accepts StreamingHttpRequest and returns
StreamingHttpResponse.| Modifier and Type | Method and Description |
|---|---|
HttpExecutionContext |
executionContext()
Get the
HttpExecutionContext used during construction of this object. |
StreamingHttpResponseFactory |
httpResponseFactory()
Get a
StreamingHttpResponseFactory. |
Single<StreamingHttpResponse> |
request(HttpExecutionStrategy strategy,
StreamingHttpRequest request)
Send a
request using the specified strategy. |
Single<StreamingHttpResponse> request(HttpExecutionStrategy strategy, StreamingHttpRequest request)
request using the specified strategy.strategy - HttpExecutionStrategy to use for executing the request.request - the request to send.HttpExecutionContext executionContext()
HttpExecutionContext used during construction of this object.
Note that the ExecutionContext.ioExecutor() will not necessarily be associated with a specific thread
unless that was how this object was built.
HttpExecutionContext used during construction of this object.StreamingHttpResponseFactory httpResponseFactory()
StreamingHttpResponseFactory.StreamingHttpResponseFactory.