|
| HttpURLConnection | openConnection (URL url, Request<?> request) throws IOException |
| |
| com.ab.network.toolbox.HurlStack.HurlStack |
( |
| ) |
|
|
inline |
| com.ab.network.toolbox.HurlStack.HurlStack |
( |
UrlRewriter |
urlRewriter | ) |
|
|
inline |
- 参数
-
| urlRewriter | Rewriter to use for request URLs |
| com.ab.network.toolbox.HurlStack.HurlStack |
( |
UrlRewriter |
urlRewriter, |
|
|
SSLSocketFactory |
sslSocketFactory |
|
) |
| |
|
inline |
- 参数
-
| urlRewriter | Rewriter to use for request URLs |
| sslSocketFactory | SSL factory to use for HTTPS connections |
| HttpURLConnection com.ab.network.toolbox.HurlStack.createConnection |
( |
URL |
url | ) |
throws IOException |
|
inlineprotected |
| static HttpEntity com.ab.network.toolbox.HurlStack.entityFromConnection |
( |
HttpURLConnection |
connection | ) |
|
|
inlinestaticprivate |
| HttpURLConnection com.ab.network.toolbox.HurlStack.openConnection |
( |
URL |
url, |
|
|
Request<?> |
request |
|
) |
| throws IOException |
|
inlineprivate |
| HttpResponse com.ab.network.toolbox.HurlStack.performRequest |
( |
Request<?> |
request, |
|
|
Map< String, String > |
additionalHeaders |
|
) |
| throws IOException, AuthFailureError |
|
inline |
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
实现了 com.ab.network.toolbox.HttpStack.
| final String com.ab.network.toolbox.HurlStack.HEADER_CONTENT_TYPE = "Content-Type" |
|
staticprivate |
| final SSLSocketFactory com.ab.network.toolbox.HurlStack.mSslSocketFactory |
|
private |
| final UrlRewriter com.ab.network.toolbox.HurlStack.mUrlRewriter |
|
private |
该类的文档由以下文件生成: