public class RequestTransport extends Object implements Transport, Closeable
| 构造器和说明 |
|---|
RequestTransport(TransportConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
okhttp3.OkHttpClient |
getClient() |
TosResponse |
roundTrip(TosRequest tosRequest)
a roundTrip includes doing a Tos request and wrapping the result with Tos response
|
RequestTransport |
setDisableEncodingMeta(boolean disableEncodingMeta) |
void |
switchConfig(TransportConfig config) |
public RequestTransport(TransportConfig config)
public RequestTransport setDisableEncodingMeta(boolean disableEncodingMeta)
public void switchConfig(TransportConfig config)
switchConfig 在接口中 Transportpublic okhttp3.OkHttpClient getClient()
public TosResponse roundTrip(TosRequest tosRequest) throws IOException
TransportroundTrip 在接口中 TransporttosRequest - Tos RequestTosResponseIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2024. All rights reserved.