| 程序包 | 说明 |
|---|---|
| com.lark.oapi.okhttp |
An HTTP+HTTP/2 client for Android and Java applications.
|
| com.lark.oapi.okhttp.internal | |
| com.lark.oapi.okhttp.internal.cache | |
| com.lark.oapi.okhttp.internal.connection | |
| com.lark.oapi.okhttp.internal.http | |
| com.lark.oapi.okhttp.internal.http1 | |
| com.lark.oapi.okhttp.internal.http2 | |
| com.lark.oapi.okhttp.internal.ws |
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
Response.Builder.build() |
Response |
Response.cacheResponse()
Returns the raw response received from the cache.
|
Response |
Call.execute()
Invokes the request immediately, and blocks until the response can be processed or is in
error.
|
Response |
Interceptor.intercept(Interceptor.Chain chain) |
Response |
Response.networkResponse()
Returns the raw response received from the network.
|
Response |
Response.priorResponse()
Returns the response for the HTTP redirect or authorization challenge that triggered this
response, or null if this response wasn't triggered by an automatic retry.
|
Response |
Interceptor.Chain.proceed(Request request) |
| 限定符和类型 | 方法和说明 |
|---|---|
Request |
Authenticator.authenticate(Route route,
Response response)
Returns a request that includes a credential to satisfy an authentication challenge in
response. |
Response.Builder |
Response.Builder.cacheResponse(Response cacheResponse) |
Response.Builder |
Response.Builder.networkResponse(Response networkResponse) |
void |
WebSocketListener.onFailure(WebSocket webSocket,
Throwable t,
Response response)
Invoked when a web socket has been closed due to an error reading from or writing to the
network.
|
void |
WebSocketListener.onOpen(WebSocket webSocket,
Response response)
Invoked when a web socket has been accepted by the remote peer and may begin transmitting
messages.
|
void |
Callback.onResponse(Call call,
Response response)
Called when the HTTP response was successfully returned by the remote server.
|
Response.Builder |
Response.Builder.priorResponse(Response priorResponse) |
void |
EventListener.responseHeadersEnd(Call call,
Response response)
Invoked immediately after receiving response headers.
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract Exchange |
Internal.exchange(Response response) |
| 限定符和类型 | 字段和说明 |
|---|---|
Response |
CacheStrategy.cacheResponse
The cached response to return or validate; or null if this call doesn't use a cache.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
InternalCache.get(Request request) |
Response |
CacheInterceptor.intercept(Interceptor.Chain chain) |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
CacheStrategy.isCacheable(Response response,
Request request)
Returns true if
response can be stored to later serve another request. |
CacheRequest |
InternalCache.put(Response response) |
void |
InternalCache.update(Response cached,
Response network)
Handles a conditional request hit by updating the stored cache response with the headers from
network. |
| 构造器和说明 |
|---|
Factory(long nowMillis,
Request request,
Response cacheResponse) |
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
ConnectInterceptor.intercept(Interceptor.Chain chain) |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseBody |
Exchange.openResponseBody(Response response) |
void |
Exchange.responseHeadersEnd(Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
CallServerInterceptor.intercept(Interceptor.Chain chain) |
Response |
RetryAndFollowUpInterceptor.intercept(Interceptor.Chain chain) |
Response |
BridgeInterceptor.intercept(Interceptor.Chain chain) |
Response |
RealInterceptorChain.proceed(Request request) |
Response |
RealInterceptorChain.proceed(Request request,
Transmitter transmitter,
Exchange exchange) |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
HttpHeaders.contentLength(Response response) |
static StatusLine |
StatusLine.get(Response response) |
static boolean |
HttpHeaders.hasBody(Response response)
Returns true if the response must have a (possibly 0-length) body.
|
static boolean |
HttpHeaders.hasVaryAll(Response response)
Returns true if a Vary header contains an asterisk.
|
Source |
ExchangeCodec.openResponseBodySource(Response response) |
long |
ExchangeCodec.reportedContentLength(Response response) |
static Headers |
HttpHeaders.varyHeaders(Response response)
Returns the subset of the headers in
response's request that impact the content of
response's body. |
static boolean |
HttpHeaders.varyMatches(Response cachedResponse,
Headers cachedRequest,
Request newRequest)
Returns true if none of the Vary headers have changed between
cachedRequest and newRequest. |
| 限定符和类型 | 方法和说明 |
|---|---|
Source |
Http1ExchangeCodec.openResponseBodySource(Response response) |
long |
Http1ExchangeCodec.reportedContentLength(Response response) |
void |
Http1ExchangeCodec.skipConnectBody(Response response)
The response body from a CONNECT should be empty, but if it is not then we should consume it
before proceeding.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Source |
Http2ExchangeCodec.openResponseBodySource(Response response) |
long |
Http2ExchangeCodec.reportedContentLength(Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RealWebSocket.failWebSocket(Exception e,
Response response) |
Copyright © 2022. All rights reserved.