public final class RealInterceptorChain extends Object implements Interceptor.Chain
| Constructor and Description |
|---|
RealInterceptorChain(List<Interceptor> interceptors,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection,
int index,
Request request) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
connection()
Returns the connection the request will be executed on.
|
HttpCodec |
httpStream() |
Response |
proceed(Request request) |
Response |
proceed(Request request,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection) |
Request |
request() |
StreamAllocation |
streamAllocation() |
public RealInterceptorChain(List<Interceptor> interceptors, StreamAllocation streamAllocation, HttpCodec httpCodec, RealConnection connection, int index, Request request)
public Connection connection()
Interceptor.Chainconnection in interface Interceptor.Chainpublic StreamAllocation streamAllocation()
public HttpCodec httpStream()
public Request request()
request in interface Interceptor.Chainpublic Response proceed(Request request) throws IOException
proceed in interface Interceptor.ChainIOExceptionpublic Response proceed(Request request, StreamAllocation streamAllocation, HttpCodec httpCodec, RealConnection connection) throws IOException
IOExceptionCopyright © 2017. All Rights Reserved.