类 HttpClientStack
java.lang.Object
com.android.volley.toolbox.HttpClientStack
- 所有已实现的接口:
HttpStack
An HttpStack that performs request over an
HttpClient.-
嵌套类概要
嵌套类修饰符和类型类说明static final classThe HttpPatch class does not exist in the Android framework, so this has been defined here. -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidonPrepareRequest(org.apache.http.client.methods.HttpUriRequest request) Called before the request is executed using the underlying HttpClient.org.apache.http.HttpResponseperformRequest(Request<?> request, Map<String, String> additionalHeaders) Performs an HTTP request with the given parameters.
-
字段详细资料
-
mClient
protected final org.apache.http.client.HttpClient mClient
-
-
构造器详细资料
-
HttpClientStack
public HttpClientStack(org.apache.http.client.HttpClient client)
-
-
方法详细资料
-
performRequest
public org.apache.http.HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders) throws IOException, AuthFailureError从接口复制的说明:HttpStackPerforms 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().
- 指定者:
performRequest在接口中HttpStack- 参数:
request- the request to performadditionalHeaders- additional headers to be sent together withRequest.getHeaders()- 返回:
- the HTTP response
- 抛出:
IOExceptionAuthFailureError
-
onPrepareRequest
protected void onPrepareRequest(org.apache.http.client.methods.HttpUriRequest request) throws IOException Called before the request is executed using the underlying HttpClient.Overwrite in subclasses to augment the request.
- 抛出:
IOException
-