public interface

HttpStack

com.android.volley.toolbox.HttpStack
Known Indirect Subclasses

Class Overview

An HTTP stack abstraction.

Summary

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

Public Methods

public abstract HttpResponse performRequest (Request<?> request, Map<String, String> additionalHeaders)

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 getHeaders()
Returns
  • the HTTP response
Throws
AuthFailureError
IOException