com.android.volley.toolbox
Interface HttpStack

All Known Implementing Classes:
HttpClientStack, HurlStack

public interface HttpStack

An HTTP stack abstraction.


Method Summary
 HttpResponse performRequest(Request<?> request, Map<String,String> additionalHeaders)
          Performs an HTTP request with the given parameters.
 

Method Detail

performRequest

HttpResponse performRequest(Request<?> request,
                            Map<String,String> additionalHeaders)
                            throws IOException,
                                   AuthFailureError
Performs an HTTP request with the given parameters.

A GET request is sent if request.getPostBody() == null. A POST request is sent otherwise, and the Content-Type header is set to request.getPostBodyContentType().

Parameters:
request - the request to perform
additionalHeaders - additional headers to be sent together with Request.getHeaders()
Returns:
the HTTP response
Throws:
IOException
AuthFailureError