public interface HttpRequester extends HttpRequestFactory, ListenableAsyncCloseable
Modifier and Type | Method and Description |
---|---|
HttpExecutionContext |
executionContext()
Get the
HttpExecutionContext used during construction of this object. |
HttpResponseFactory |
httpResponseFactory()
Get a
HttpResponseFactory . |
Single<HttpResponse> |
request(HttpExecutionStrategy strategy,
HttpRequest request)
Send a
request using the specified strategy . |
connect, delete, get, head, newRequest, options, patch, post, put, trace
onClose
closeAsync, closeAsyncGracefully
Single<HttpResponse> request(HttpExecutionStrategy strategy, HttpRequest 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.HttpResponseFactory httpResponseFactory()
HttpResponseFactory
.HttpResponseFactory
.