类的使用
com.alibaba.nacos.common.http.HttpClientConfig
-
使用HttpClientConfig的程序包 程序包 说明 com.alibaba.nacos.common.http com.alibaba.nacos.common.http.client com.alibaba.nacos.common.http.client.request com.alibaba.nacos.common.model -
-
com.alibaba.nacos.common.http中HttpClientConfig的使用
返回HttpClientConfig的com.alibaba.nacos.common.http中的方法 修饰符和类型 方法 说明 HttpClientConfigHttpClientConfig.HttpClientConfigBuilder. build()build http client config.protected abstract HttpClientConfigAbstractHttpClientFactory. buildHttpClientConfig()build http client config.protected HttpClientConfigDefaultHttpClientFactory. buildHttpClientConfig()参数类型为HttpClientConfig的com.alibaba.nacos.common.http中的方法 修饰符和类型 方法 说明 private org.apache.http.nio.conn.NHttpClientConnectionManagerAbstractHttpClientFactory. getConnectionManager(HttpClientConfig originalRequestConfig, org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor ioreactor)create theNHttpClientConnectionManager, the code mainly fromHttpAsyncClientBuilder.build(). we add theIOReactorExceptionHandlerto handle theIOExceptionandRuntimeExceptionthrown by theBaseIOReactorwhen process the event of Network. -
com.alibaba.nacos.common.http.client中HttpClientConfig的使用
参数类型为HttpClientConfig的com.alibaba.nacos.common.http.client中的方法 修饰符和类型 方法 说明 <T> HttpRestResult<T>NacosRestTemplate. delete(java.lang.String url, HttpClientConfig config, Header header, Query query, java.lang.reflect.Type responseType)http delete URL request params are expanded using the given queryQuery.<T> HttpRestResult<T>NacosRestTemplate. exchange(java.lang.String url, HttpClientConfig config, Header header, Query query, java.lang.Object body, java.lang.String httpMethod, java.lang.reflect.Type responseType)Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asHttpRestResult.<T> HttpRestResult<T>NacosRestTemplate. get(java.lang.String url, HttpClientConfig config, Header header, Query query, java.lang.reflect.Type responseType)http get URL request params are expanded using the given queryQuery.<T> HttpRestResult<T>NacosRestTemplate. postForm(java.lang.String url, HttpClientConfig config, Header header, java.util.Map<java.lang.String,java.lang.String> bodyValues, java.lang.reflect.Type responseType)http post from Create a new resource by PUTting the given mapbodyValuesto http request, http header contentType default 'application/x-www-form-urlencoded;charset=utf-8'.<T> HttpRestResult<T>NacosRestTemplate. putForm(java.lang.String url, HttpClientConfig config, Header header, java.util.Map<java.lang.String,java.lang.String> bodyValues, java.lang.reflect.Type responseType)http put from Create a new resource by PUTting the given mapbodyValuesto http request, http header contentType default 'application/x-www-form-urlencoded;charset=utf-8'. -
com.alibaba.nacos.common.http.client.request中HttpClientConfig的使用
声明为HttpClientConfig的com.alibaba.nacos.common.http.client.request中的字段 修饰符和类型 字段 说明 private HttpClientConfigJdkHttpClientRequest. httpClientConfig参数类型为HttpClientConfig的com.alibaba.nacos.common.http.client.request中的方法 修饰符和类型 方法 说明 private static voidDefaultHttpClientRequest. mergeDefaultConfig(org.apache.http.client.methods.HttpRequestBase requestBase, HttpClientConfig httpClientConfig, org.apache.http.client.config.RequestConfig defaultConfig)Merge the HTTP config created by default with the HTTP config specified in the request.private voidJdkHttpClientRequest. replaceDefaultConfig(HttpClientConfig replaceConfig)Replace the HTTP config created by default with the HTTP config specified in the request.参数类型为HttpClientConfig的com.alibaba.nacos.common.http.client.request中的构造器 构造器 说明 JdkHttpClientRequest(HttpClientConfig httpClientConfig) -
com.alibaba.nacos.common.model中HttpClientConfig的使用
声明为HttpClientConfig的com.alibaba.nacos.common.model中的字段 修饰符和类型 字段 说明 private HttpClientConfigRequestHttpEntity. httpClientConfig返回HttpClientConfig的com.alibaba.nacos.common.model中的方法 修饰符和类型 方法 说明 HttpClientConfigRequestHttpEntity. getHttpClientConfig()参数类型为HttpClientConfig的com.alibaba.nacos.common.model中的构造器 构造器 说明 RequestHttpEntity(HttpClientConfig httpClientConfig, Header header, Query query)RequestHttpEntity(HttpClientConfig httpClientConfig, Header header, Query query, java.lang.Object body)RequestHttpEntity(HttpClientConfig httpClientConfig, Header header, java.lang.Object body)
-