Public 成员函数 | |
| HttpResponse | performRequest (Request<?> request, Map< String, String > additionalHeaders) throws IOException, AuthFailureError |
An HTTP stack abstraction.
| HttpResponse com.ab.network.toolbox.HttpStack.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().
| request | the request to perform |
| additionalHeaders | additional headers to be sent together with Request#getHeaders() |
在 com.ab.network.toolbox.HurlStack 内被实现.
1.8.8