public class OkHttpStackConnection extends Object
HttpConnection implementation using OkHttpClient.| Constructor and Description |
|---|
OkHttpStackConnection(OkHttpClient client,
String method,
String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ServerResponse |
getResponse(RequestBodyDelegate delegate) |
void |
setHeaders(List<NameValue> requestHeaders) |
void |
setTotalBodyBytes(long totalBodyBytes,
boolean isFixedLengthStreamingMode) |
public OkHttpStackConnection(OkHttpClient client,
String method,
String url)
throws IOException
IOExceptionpublic void setHeaders(List<NameValue> requestHeaders) throws IOException
IOExceptionpublic void setTotalBodyBytes(long totalBodyBytes,
boolean isFixedLengthStreamingMode)
public ServerResponse getResponse(RequestBodyDelegate delegate)
throws IOException
IOExceptionpublic void close()