类的使用
com.alibaba.nacos.common.http.param.Header
使用Header的程序包
程序包
说明
-
com.alibaba.nacos.common.http中Header的使用
参数类型为Header的com.alibaba.nacos.common.http中的方法修饰符和类型方法说明static voidHttpUtils.initRequestEntity(org.apache.http.client.methods.HttpRequestBase requestBase, Object body, Header header)Init http entity.static voidHttpUtils.initRequestHeader(org.apache.http.client.methods.HttpRequestBase requestBase, Header header)Init http header.void参数类型为Header的com.alibaba.nacos.common.http中的构造器 -
com.alibaba.nacos.common.http.client中Header的使用
修饰符和类型方法说明<T> voidNacosAsyncRestTemplate.delete(String url, Header header, Query query, Type responseType, Callback<T> callback)async http delete URL request params are expanded using the given queryQuery,<T> voidNacosAsyncRestTemplate.delete(String url, Header header, String body, Type responseType, Callback<T> callback)async http delete large request, when the parameter exceeds the URL limit, you can use this method to put the parameter into the body pass.<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 queryQuery.<T> HttpRestResult<T>http delete URL request params are expanded using the given queryQuery.<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 asHttpRestResult.<T> HttpRestResult<T>NacosRestTemplate.exchangeForm(String url, Header header, Query query, Map<String,String> bodyValues, 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 asHttpRestResult.<T> voidNacosAsyncRestTemplate.get(String url, Header header, Query query, Type responseType, Callback<T> callback)async http get URL request params are expanded using the given queryQuery.<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 queryQuery.<T> HttpRestResult<T>http get URL request params are expanded using the given queryQuery.<T> voidNacosAsyncRestTemplate.getLarge(String url, Header header, Query query, Object body, Type responseType, Callback<T> callback)async get request, may be pulling a lot of data URL request params are expanded using the given queryQuery, More request parameters can be set via body.<T> HttpRestResult<T>get request, may be pulling a lot of data URL request params are expanded using the given queryQuery, More request parameters can be set via body.<T> voidNacosAsyncRestTemplate.post(String url, Header header, Query query, Object body, Type responseType, Callback<T> callback)async http post Create a new resource by POSTing the given object to the http request.<T> HttpRestResult<T>http post Create a new resource by POSTing the given object to the http request.<T> voidNacosAsyncRestTemplate.postForm(String url, Header header, Query query, Map<String,String> bodyValues, Type responseType, Callback<T> callback)async 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> voidNacosAsyncRestTemplate.postForm(String url, Header header, Map<String,String> bodyValues, Type responseType, Callback<T> callback)async 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.postForm(String url, HttpClientConfig config, Header header, Map<String,String> bodyValues, 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.postForm(String url, Header header, Query query, Map<String,String> bodyValues, 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.postForm(String url, Header header, Map<String,String> bodyValues, 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> voidNacosAsyncRestTemplate.postJson(String url, Header header, Query query, String body, Type responseType, Callback<T> callback)async http post Json Create a new resource by POSTing the given object to the http request, http header contentType default 'application/json;charset=UTF-8'.<T> voidNacosAsyncRestTemplate.postJson(String url, Header header, String body, Type responseType, Callback<T> callback)async http post Json Create a new resource by POSTing the given object to the http request, http header contentType default 'application/json;charset=UTF-8'.<T> HttpRestResult<T>http post json Create a new resource by POSTing the given object to the http request, http header contentType default 'application/json;charset=UTF-8'.<T> HttpRestResult<T>http post json Create a new resource by POSTing the given object to the http request, http header contentType default 'application/json;charset=UTF-8'.<T> voidNacosAsyncRestTemplate.put(String url, Header header, Query query, Object body, Type responseType, Callback<T> callback)async http put Create a new resource by PUTting the given body to http request.<T> HttpRestResult<T>http put Create a new resource by PUTting the given body to http request.<T> voidNacosAsyncRestTemplate.putForm(String url, Header header, Query query, Map<String,String> bodyValues, Type responseType, Callback<T> callback)async 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'.<T> voidNacosAsyncRestTemplate.putForm(String url, Header header, Map<String,String> bodyValues, Type responseType, Callback<T> callback)async 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'.<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 mapbodyValuesto http request, http header contentType default 'application/x-www-form-urlencoded;charset=utf-8'.<T> HttpRestResult<T>NacosRestTemplate.putForm(String url, Header header, Query query, Map<String,String> bodyValues, 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'.<T> HttpRestResult<T>NacosRestTemplate.putForm(String url, Header header, Map<String,String> bodyValues, 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'.<T> voidNacosAsyncRestTemplate.putJson(String url, Header header, Query query, String body, Type responseType, Callback<T> callback)async http put Json Create a new resource by PUTting the given body to http request, http header contentType default 'application/json;charset=UTF-8'.<T> voidNacosAsyncRestTemplate.putJson(String url, Header header, String body, Type responseType, Callback<T> callback)async http put Json Create a new resource by PUTting the given body to http request, http header contentType default 'application/json;charset=UTF-8'.<T> HttpRestResult<T>http put json Create a new resource by PUTting the given body to http request, http header contentType default 'application/json;charset=UTF-8'.<T> HttpRestResult<T>http put json Create a new resource by PUTting the given body to http request, http header contentType default 'application/json;charset=UTF-8'. -
com.alibaba.nacos.common.http.client.response中Header的使用
修饰符和类型方法说明DefaultClientHttpResponse.getHeaders()HttpClientResponse.getHeaders()Return the headers of this message.JdkHttpClientResponse.getHeaders() -
com.alibaba.nacos.common.http.param中Header的使用
-
com.alibaba.nacos.common.model中Header的使用
参数类型为Header的com.alibaba.nacos.common.model中的构造器限定符构造器说明RequestHttpEntity(HttpClientConfig httpClientConfig, Header header, Query query)RequestHttpEntity(HttpClientConfig httpClientConfig, Header header, Query query, Object body)RequestHttpEntity(HttpClientConfig httpClientConfig, Header header, Object body)RequestHttpEntity(Header header, Query query)RequestHttpEntity(Header header, Query query, Object body)RequestHttpEntity(Header header, Object body)