public class RequestTransport extends Object implements Transport
| Constructor and Description |
|---|
RequestTransport(TransportConfig config) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface Transportpublic okhttp3.OkHttpClient getClient()
public TosResponse roundTrip(TosRequest tosRequest) throws IOException
TransportroundTrip in interface TransporttosRequest - Tos RequestTosResponseIOExceptionCopyright © 2023. All rights reserved.