| 程序包 | 说明 |
|---|---|
| com.lark.oapi.okhttp |
An HTTP+HTTP/2 client for Android and Java applications.
|
| com.lark.oapi.okhttp.internal.cache | |
| com.lark.oapi.okhttp.internal.connection | |
| com.lark.oapi.okhttp.internal.http |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Interceptor> |
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).
|
List<Interceptor> |
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).
|
List<Interceptor> |
OkHttpClient.networkInterceptors()
Returns an immutable list of interceptors that observe a single network request and response.
|
List<Interceptor> |
OkHttpClient.Builder.networkInterceptors()
Returns a modifiable list of interceptors that observe a single network request and response.
|
| 限定符和类型 | 方法和说明 |
|---|---|
OkHttpClient.Builder |
OkHttpClient.Builder.addInterceptor(Interceptor interceptor) |
OkHttpClient.Builder |
OkHttpClient.Builder.addNetworkInterceptor(Interceptor interceptor) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CacheInterceptor
Serves requests from the cache and writes responses to the cache.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ConnectInterceptor
Opens a connection to the target server and proceeds to the next interceptor.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
BridgeInterceptor
Bridges from application code to network code.
|
class |
CallServerInterceptor
This is the last interceptor in the chain.
|
class |
RetryAndFollowUpInterceptor
This interceptor recovers from failures and follows redirects as necessary.
|
| 构造器和说明 |
|---|
RealInterceptorChain(List<Interceptor> interceptors,
Transmitter transmitter,
Exchange exchange,
int index,
Request request,
Call call,
int connectTimeout,
int readTimeout,
int writeTimeout) |
Copyright © 2025. All rights reserved.