com.android.volley.toolbox
インタフェース HttpStack

既知の実装クラスの一覧:
HttpClientStack, HurlStack

public interface HttpStack

An HTTP stack abstraction.


メソッドの概要
 HttpResponse performRequest(Request<?> request, java.util.Map<java.lang.String,java.lang.String> additionalHeaders)
          Performs an HTTP request with the given parameters.
 

メソッドの詳細

performRequest

HttpResponse performRequest(Request<?> request,
                            java.util.Map<java.lang.String,java.lang.String> additionalHeaders)
                            throws java.io.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().

パラメータ:
request - the request to perform
additionalHeaders - additional headers to be sent together with Request.getHeaders()
戻り値:
the HTTP response
例外:
java.io.IOException
AuthFailureError