public class DefaultHttpClient extends Object implements HttpClient
| Constructor and Description |
|---|
DefaultHttpClient()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> HttpResponse<T> |
doGet(HttpRequest httpRequest,
Class<T> responseType)
Do get operation for the http request.
|
<T> HttpResponse<T> |
doGet(HttpRequest httpRequest,
Type responseType)
Do get operation for the http request.
|
public <T> HttpResponse<T> doGet(HttpRequest httpRequest, Class<T> responseType)
doGet in interface HttpClienthttpRequest - the requestresponseType - the response typeApolloConfigException - if any error happened or response code is neither 200 nor 304public <T> HttpResponse<T> doGet(HttpRequest httpRequest, Type responseType)
doGet in interface HttpClienthttpRequest - the requestresponseType - the response typeApolloConfigException - if any error happened or response code is neither 200 nor 304Copyright © 2022 Ctrip, Inc.. All rights reserved.