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, toString
public OkHttpResponse(HttpClientConfiguration conf)
public OkHttpResponse(okhttp3.Call call, okhttp3.OkHttpClient okHttpClient, HttpClientConfiguration conf) throws IOException
IOException
public okhttp3.Protocol getProtocol()
public String getResponseHeader(String name)
getResponseHeader
in class HttpResponse
public Map<String,List<String>> getResponseHeaderFields()
getResponseHeaderFields
in class HttpResponse
public void disconnect() throws IOException
disconnect
in class HttpResponse
IOException
Copyright © 2018. All rights reserved.