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, statusMessagepublic static LoadBalancedHttpResponse createLoadBalancedResponse(URI server, HttpLoadBalancer loadBalancer, okhttp3.Call call) throws IOException
IOExceptionpublic long contentLength()
throws IOException
contentLength in interface HttpResponsecontentLength in class OkHttpResponseWrapperIOExceptionpublic InputStream getBody()
getBody in interface HttpResponsegetBody in class OkHttpResponseWrapperpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OkHttpResponseWrapperIOException