public interface HttpRequester extends HttpRequestFactory, ListenableAsyncCloseable, GracefulAutoCloseable
| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
default void |
closeGracefully() |
HttpExecutionContext |
executionContext()
Get the
HttpExecutionContext used during construction of this object. |
HttpResponseFactory |
httpResponseFactory()
Get a
HttpResponseFactory. |
Single<HttpResponse> |
request(HttpRequest request)
Send a
request. |
Single<HttpResponse> request(HttpRequest request)
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.default void close()
throws Exception
close in interface AutoCloseableExceptiondefault void closeGracefully()
throws Exception
closeGracefully in interface GracefulAutoCloseableException