An interface which is implemented by the HTTP implementation.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
execute(Request request, InputStream body, CompletionCallback cb) Execute the HTTP exchange asynchronously. |
|
String |
getUserAgent() Returns the User-Agent string for this implementation. |
Execute the HTTP exchange asynchronously.
The HTTP implementation is responsible for closing the input stream when done with it.
request
- HTTP request to execute.body
- Request entity, or null
.cb
- Completion callback to call when the response is received.Returns the User-Agent string for this implementation.