public class OkHttpResponse extends HttpResponse
| Constructor and Description |
|---|
OkHttpResponse(okhttp3.Call call,
okhttp3.OkHttpClient okHttpClient,
HttpClientConfiguration conf) |
OkHttpResponse(HttpClientConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
okhttp3.Protocol |
getProtocol() |
String |
getResponseHeader(String name) |
Map<String,List<String>> |
getResponseHeaderFields() |
asJSONArray, asJSONObject, asReader, asStream, asString, getStatusCode, toStringpublic OkHttpResponse(HttpClientConfiguration conf)
public OkHttpResponse(okhttp3.Call call,
okhttp3.OkHttpClient okHttpClient,
HttpClientConfiguration conf)
throws IOException
IOExceptionpublic okhttp3.Protocol getProtocol()
public String getResponseHeader(String name)
getResponseHeader in class HttpResponsepublic Map<String,List<String>> getResponseHeaderFields()
getResponseHeaderFields in class HttpResponsepublic void disconnect()
throws IOException
disconnect in class HttpResponseIOExceptionCopyright © 2018. All rights reserved.