public class DefaultHttpClient extends Object implements HttpClient
| 构造器和说明 |
|---|
DefaultHttpClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpResponseEntity |
get(String url,
Map<String,String> headers,
Charset charset,
int connectTimeout,
int socketTimeout) |
HttpResponseEntity |
post(String url,
String content,
Map<String,String> headers,
Charset charset,
int connectTimeout,
int socketTimeout)
Content-Type: application/json
|
HttpResponseEntity |
postForm(String url,
Map<String,String> params,
Map<String,String> headers,
Charset charset,
int connectTimeout,
int socketTimeout) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetpublic HttpResponseEntity get(String url, Map<String,String> headers, Charset charset, int connectTimeout, int socketTimeout)
get 在接口中 HttpClientpublic HttpResponseEntity post(String url, String content, Map<String,String> headers, Charset charset, int connectTimeout, int socketTimeout)
HttpClientpost 在接口中 HttpClienturl - : url 地址content - : 请求内容headers - : 请求headercharset - : 编码connectTimeout - : 链接超时时间socketTimeout - : 读写数据超时时间Copyright © 2023 Pivotal Software, Inc.. All rights reserved.