类的使用
com.alibaba.nacos.common.http.HttpRestResult
使用HttpRestResult的程序包
-
com.alibaba.nacos.common.http.client中HttpRestResult的使用
修饰符和类型方法说明<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> 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> 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> HttpRestResult<T>http post Create a new resource by POSTing the given object to the http request.<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> 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> HttpRestResult<T>http put Create a new resource by PUTting the given body to http request.<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> 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.handler中HttpRestResult的使用
修饰符和类型方法说明abstract HttpRestResult<T>AbstractResponseHandler.convertResult(HttpClientResponse response, Type responseType)Abstract convertResult method, Different types of converters for expansion.BeanResponseHandler.convertResult(HttpClientResponse response, Type responseType)RestResultResponseHandler.convertResult(HttpClientResponse response, Type responseType)StringResponseHandler.convertResult(HttpClientResponse response, Type responseType)AbstractResponseHandler.handle(HttpClientResponse response)ResponseHandler.handle(HttpClientResponse response)handle response convert to HttpRestResult.