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) |
HttpConnection |
setHeaders(List<NameValue> requestHeaders) |
HttpConnection |
setTotalBodyBytes(long totalBodyBytes,
boolean isFixedLengthStreamingMode) |
public OkHttpStackConnection(OkHttpClient client,
String method,
String url)
throws IOException
IOExceptionpublic HttpConnection setHeaders(List<NameValue> requestHeaders) throws IOException
IOExceptionpublic HttpConnection setTotalBodyBytes(long totalBodyBytes,
boolean isFixedLengthStreamingMode)
public ServerResponse getResponse(RequestBodyDelegate delegate)
throws IOException
IOExceptionpublic void close()