| 程序包 | 说明 |
|---|---|
| com.alibaba.nacos.common.http | |
| com.alibaba.nacos.common.http.client | |
| com.alibaba.nacos.common.http.client.request | |
| com.alibaba.nacos.common.model |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpClientConfig |
HttpClientConfig.HttpClientConfigBuilder.build() |
protected abstract HttpClientConfig |
AbstractHttpClientFactory.buildHttpClientConfig()
build http client config.
|
protected HttpClientConfig |
DefaultHttpClientFactory.buildHttpClientConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> HttpRestResult<T> |
NacosRestTemplate.delete(String url,
HttpClientConfig config,
Header header,
Query query,
Type responseType)
http delete URL request params are expanded using the given query
Query. |
<T> HttpRestResult<T> |
NacosRestTemplate.exchange(String url,
HttpClientConfig config,
Header header,
Query query,
Object body,
String httpMethod,
Type responseType)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns
the response as
HttpRestResult. |
<T> HttpRestResult<T> |
NacosRestTemplate.get(String url,
HttpClientConfig config,
Header header,
Query query,
Type responseType)
http get URL request params are expanded using the given query
Query. |
<T> HttpRestResult<T> |
NacosRestTemplate.postForm(String url,
HttpClientConfig config,
Header header,
Map<String,String> bodyValues,
Type responseType)
http post from Create a new resource by PUTting the given map
bodyValues to http request, http header
contentType default 'application/x-www-form-urlencoded;charset=utf-8'. |
<T> HttpRestResult<T> |
NacosRestTemplate.putForm(String url,
HttpClientConfig config,
Header header,
Map<String,String> bodyValues,
Type responseType)
http put from Create a new resource by PUTting the given map
bodyValues to http request, http header
contentType default 'application/x-www-form-urlencoded;charset=utf-8'. |
| 构造器和说明 |
|---|
JdkHttpClientRequest(HttpClientConfig httpClientConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpClientConfig |
RequestHttpEntity.getHttpClientConfig() |
| 构造器和说明 |
|---|
RequestHttpEntity(HttpClientConfig httpClientConfig,
Header header,
Object body) |
RequestHttpEntity(HttpClientConfig httpClientConfig,
Header header,
Query query) |
RequestHttpEntity(HttpClientConfig httpClientConfig,
Header header,
Query query,
Object body) |
Copyright © 2018–2020 Alibaba Group. All rights reserved.