public class LoadBalancedHttpResponse extends OkHttpResponseWrapper
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
contentLength() |
static LoadBalancedHttpResponse |
createLoadBalancedResponse(URI server,
HttpLoadBalancer loadBalancer,
okhttp3.Call call) |
InputStream |
getBody() |
getResponse, requestUrl, statusCode, statusMessage
public static LoadBalancedHttpResponse createLoadBalancedResponse(URI server, HttpLoadBalancer loadBalancer, okhttp3.Call call) throws IOException
IOException
public long contentLength() throws IOException
contentLength
in interface HttpResponse
contentLength
in class OkHttpResponseWrapper
IOException
public InputStream getBody()
getBody
in interface HttpResponse
getBody
in class OkHttpResponseWrapper
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OkHttpResponseWrapper
IOException