接口的使用
com.lark.oapi.okhttp.Interceptor
使用Interceptor的程序包
程序包
说明
An HTTP+HTTP/2 client for Android and Java applications.
-
com.lark.oapi.okhttp中Interceptor的使用
返回变量类型为Interceptor的类型的com.lark.oapi.okhttp中的方法修饰符和类型方法说明OkHttpClient.Builder.interceptors()Returns a modifiable list of interceptors that observe the full span of each call: from before the connection is established (if any) until after the response source is selected (either the origin server, cache, or both).OkHttpClient.interceptors()Returns an immutable list of interceptors that observe the full span of each call: from before the connection is established (if any) until after the response source is selected (either the origin server, cache, or both).OkHttpClient.Builder.networkInterceptors()Returns a modifiable list of interceptors that observe a single network request and response.OkHttpClient.networkInterceptors()Returns an immutable list of interceptors that observe a single network request and response.参数类型为Interceptor的com.lark.oapi.okhttp中的方法修饰符和类型方法说明OkHttpClient.Builder.addInterceptor(Interceptor interceptor) OkHttpClient.Builder.addNetworkInterceptor(Interceptor interceptor) -
com.lark.oapi.okhttp.internal.cache中Interceptor的使用
修饰符和类型类说明final classServes requests from the cache and writes responses to the cache. -
com.lark.oapi.okhttp.internal.connection中Interceptor的使用
修饰符和类型类说明final classOpens a connection to the target server and proceeds to the next interceptor. -
com.lark.oapi.okhttp.internal.http中Interceptor的使用
修饰符和类型类说明final classBridges from application code to network code.final classThis is the last interceptor in the chain.final classThis interceptor recovers from failures and follows redirects as necessary.类型变量类型为Interceptor的com.lark.oapi.okhttp.internal.http中的构造器参数限定符构造器说明RealInterceptorChain(List<Interceptor> interceptors, Transmitter transmitter, Exchange exchange, int index, Request request, Call call, int connectTimeout, int readTimeout, int writeTimeout)