public class HTTPClient extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
HTTPClient.Builder |
| 构造器和说明 |
|---|
HTTPClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
static HTTPClient.Builder |
builder() |
<Rsp> Rsp |
doJSONRequest(String path,
Object request,
Rsp response,
Options options) |
<Rsp extends com.google.protobuf.Message,Req extends com.google.protobuf.Message> |
doPBRequest(String path,
Req request,
com.google.protobuf.Parser<Rsp> rspParser,
Options options) |
void |
shutdown() |
public <Rsp extends com.google.protobuf.Message,Req extends com.google.protobuf.Message> Rsp doPBRequest(String path, Req request, com.google.protobuf.Parser<Rsp> rspParser, Options options) throws NetException, BizException
public <Rsp> Rsp doJSONRequest(String path, Object request, Rsp response, Options options) throws NetException, BizException
public void shutdown()
public static HTTPClient.Builder builder()
Copyright © 2023. All rights reserved.