| Package | Description |
|---|---|
| com.chanjet.openapi.sdk.java.utils |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse |
HttpUtils.doDelete(String url,
Map<String,String> params,
Map<String,String> headers,
String contentType,
int connectTimeout,
int readTimeout)
执行HTTP DELETE请求。
|
static HttpResponse |
HttpUtils.doGet(String url,
Map<String,String> headers,
Map<String,String> params,
String contentType,
int connectTimeout,
int readTimeout)
执行HTTP GET请求。
|
static HttpResponse |
HttpUtils.doPost(String url,
Map<String,String> headers,
Map<String,String> params,
String contentType,
String body,
int connectTimeout,
int readTimeout,
String proxyHost,
int proxyPort)
执行HTTP POST请求,可使用代理proxy。
|
static HttpResponse |
HttpUtils.doPost(String url,
Map<String,String> headers,
String contentType,
byte[] content,
int connectTimeout,
int readTimeout,
String proxyHost,
int proxyPort)
执行HTTP POST请求。
|
static HttpResponse |
HttpUtils.doPut(String url,
Map<String,String> headers,
Map<String,String> params,
String contentType,
String body,
int connectTimeout,
int readTimeout,
String proxyHost,
int proxyPort)
执行HTTP PUT请求
|
static HttpResponse |
HttpUtils.doPut(String url,
Map<String,String> headers,
String ctype,
byte[] content,
int connectTimeout,
int readTimeout,
String proxyHost,
int proxyPort) |
protected static HttpResponse |
HttpUtils.getHttpResponse(HttpURLConnection conn) |
Copyright © 2020. All rights reserved.