com.ning.http.client.AsyncHttpProvider |
![]() |
Interface to be used when implementing custom asynchronous I/O HTTP client.
By default, the NettyAsyncHttpProvider
is used.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Close the current underlying TCP/HTTP connection.
| |||||||||||
Execute the request and invoke the
AsyncHandler when the response arrive. | |||||||||||
Prepare a
Response |
Close the current underlying TCP/HTTP connection.
Execute the request and invoke the AsyncHandler
when the response arrive.
handler | an instance of AsyncHandler |
---|
ListenableFuture
of Type T.IOException |
---|
Prepare a Response
status | HttpResponseStatus |
---|---|
headers | HttpResponseHeaders |
bodyParts | list of HttpResponseBodyPart |
Response