类 RealInterceptorChain
java.lang.Object
com.lark.oapi.okhttp.internal.http.RealInterceptorChain
- 所有已实现的接口:
Interceptor.Chain
A concrete interceptor chain that carries the entire interceptor chain: all application
interceptors, the OkHttp core, all network interceptors, and finally the network caller.
If the chain is for an application interceptor then connection() must be null.
Otherwise it is for a network interceptor and connection() must be non-null.
-
构造器概要
构造器构造器说明RealInterceptorChain(List<Interceptor> interceptors, Transmitter transmitter, Exchange exchange, int index, Request request, Call call, int connectTimeout, int readTimeout, int writeTimeout) -
方法概要
修饰符和类型方法说明call()Returns the connection the request will be executed on.intexchange()proceed(Request request, Transmitter transmitter, Exchange exchange) intrequest()withConnectTimeout(int timeout, TimeUnit unit) withReadTimeout(int timeout, TimeUnit unit) withWriteTimeout(int timeout, TimeUnit unit) int
-
构造器详细资料
-
RealInterceptorChain
public RealInterceptorChain(List<Interceptor> interceptors, Transmitter transmitter, @Nullable Exchange exchange, int index, Request request, Call call, int connectTimeout, int readTimeout, int writeTimeout)
-
-
方法详细资料
-
connection
从接口复制的说明:Interceptor.ChainReturns the connection the request will be executed on. This is only available in the chains of network interceptors; for application interceptors this is always null.- 指定者:
connection在接口中Interceptor.Chain
-
connectTimeoutMillis
public int connectTimeoutMillis()- 指定者:
connectTimeoutMillis在接口中Interceptor.Chain
-
withConnectTimeout
- 指定者:
withConnectTimeout在接口中Interceptor.Chain
-
readTimeoutMillis
public int readTimeoutMillis()- 指定者:
readTimeoutMillis在接口中Interceptor.Chain
-
withReadTimeout
- 指定者:
withReadTimeout在接口中Interceptor.Chain
-
writeTimeoutMillis
public int writeTimeoutMillis()- 指定者:
writeTimeoutMillis在接口中Interceptor.Chain
-
withWriteTimeout
- 指定者:
withWriteTimeout在接口中Interceptor.Chain
-
transmitter
-
exchange
-
call
- 指定者:
call在接口中Interceptor.Chain
-
request
- 指定者:
request在接口中Interceptor.Chain
-
proceed
- 指定者:
proceed在接口中Interceptor.Chain- 抛出:
IOException
-
proceed
public Response proceed(Request request, Transmitter transmitter, @Nullable Exchange exchange) throws IOException - 抛出:
IOException
-