| Modifier and Type | Class and Description |
|---|---|
static class |
HttpClientStack.HttpPatch
The HttpPatch class does not exist in the Android framework, so this has been defined here.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.client.HttpClient |
mClient |
| Constructor and Description |
|---|
HttpClientStack(org.apache.http.client.HttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onPrepareRequest(org.apache.http.client.methods.HttpUriRequest request)
Called before the request is executed using the underlying HttpClient.
|
org.apache.http.HttpResponse |
performRequest(Request<?> request,
Map<String,String> additionalHeaders)
Performs an HTTP request with the given parameters.
|
public org.apache.http.HttpResponse performRequest(Request<?> request, Map<String,String> additionalHeaders) throws IOException, AuthFailureError
HttpStackA GET request is sent if request.getPostBody() == null. A POST request is sent otherwise, and the Content-Type header is set to request.getPostBodyContentType().
performRequest in interface HttpStackrequest - the request to performadditionalHeaders - additional headers to be sent together with
Request.getHeaders()IOExceptionAuthFailureErrorprotected void onPrepareRequest(org.apache.http.client.methods.HttpUriRequest request)
throws IOException
Overwrite in subclasses to augment the request.
IOExceptionCopyright © 2015. All rights reserved.