public interface HttpClient
| 限定符和类型 | 方法和说明 |
|---|---|
default HttpResponseEntity |
get(String url,
Map<String,String> headers,
Charset charset,
int connectTimeout,
int socketTimeout) |
default HttpResponseEntity |
get(String url,
Map<String,String> params,
Map<String,String> headers,
Charset charset,
int connectTimeout,
int socketTimeout) |
default HttpResponseEntity |
post(String url,
String content,
Map<String,String> headers,
Charset charset,
int connectTimeout,
int socketTimeout)
Content-Type: application/json
|
default HttpResponseEntity |
postForm(String url,
Map<String,String> params,
Map<String,String> headers,
Charset charset,
int connectTimeout,
int socketTimeout) |
default HttpResponseEntity get(String url, Map<String,String> headers, Charset charset, int connectTimeout, int socketTimeout)
default HttpResponseEntity get(String url, Map<String,String> params, Map<String,String> headers, Charset charset, int connectTimeout, int socketTimeout)
default HttpResponseEntity post(String url, String content, Map<String,String> headers, Charset charset, int connectTimeout, int socketTimeout)
url - : url 地址content - : 请求内容headers - : 请求headercharset - : 编码connectTimeout - : 链接超时时间socketTimeout - : 读写数据超时时间Copyright © 2023 Pivotal Software, Inc.. All rights reserved.