| 构造器和说明 |
|---|
RequestTransport(TransportConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
okhttp3.OkHttpClient |
getClient() |
TosResponse |
roundTrip(TosRequest tosRequest)
a roundTrip includes doing a Tos request and wrapping the result with Tos response
|
void |
switchConfig(TransportConfig config) |
public RequestTransport(TransportConfig config)
public void switchConfig(TransportConfig config)
switchConfig 在接口中 Transportpublic okhttp3.OkHttpClient getClient()
public TosResponse roundTrip(TosRequest tosRequest) throws IOException
TransportroundTrip 在接口中 TransporttosRequest - Tos RequestTosResponseIOExceptionCopyright © 2023. All rights reserved.