public class HttpUtil extends Object
| 构造器和说明 |
|---|
HttpUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> HttpResponse<T> |
doGet(HttpRequest httpRequest,
Class<T> responseType)
Do get operation for the http request.
|
static <T> HttpResponse<T> |
doGet(HttpRequest httpRequest,
Type responseType)
Do get operation for the http request.
|
public static <T> HttpResponse<T> doGet(HttpRequest httpRequest, Class<T> responseType)
httpRequest - the requestresponseType - the response typeJediClientException - if any error happened or response code is neither 200 nor 304public static <T> HttpResponse<T> doGet(HttpRequest httpRequest, Type responseType)
httpRequest - the requestresponseType - the response typeJediClientException - if any error happened or response code is neither 200 nor 304Copyright © 2021 hellothomas. All rights reserved.