类的使用
com.lark.oapi.okhttp.Response
使用Response的程序包
程序包
说明
An HTTP+HTTP/2 client for Android and Java applications.
-
com.lark.oapi.okhttp中Response的使用
返回Response的com.lark.oapi.okhttp中的方法修饰符和类型方法说明Response.Builder.build()Response.cacheResponse()Returns the raw response received from the cache.Call.execute()Invokes the request immediately, and blocks until the response can be processed or is in error.Interceptor.intercept(Interceptor.Chain chain) Response.networkResponse()Returns the raw response received from the network.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的com.lark.oapi.okhttp中的方法修饰符和类型方法说明Authenticator.authenticate(Route route, Response response) Returns a request that includes a credential to satisfy an authentication challenge inresponse.Response.Builder.cacheResponse(Response cacheResponse) Response.Builder.networkResponse(Response networkResponse) voidInvoked when a web socket has been closed due to an error reading from or writing to the network.voidInvoked when a web socket has been accepted by the remote peer and may begin transmitting messages.voidCallback.onResponse(Call call, Response response) Called when the HTTP response was successfully returned by the remote server.Response.Builder.priorResponse(Response priorResponse) voidEventListener.responseHeadersEnd(Call call, Response response) Invoked immediately after receiving response headers. -
com.lark.oapi.okhttp.internal中Response的使用
参数类型为Response的com.lark.oapi.okhttp.internal中的方法 -
com.lark.oapi.okhttp.internal.cache中Response的使用
修饰符和类型字段说明final ResponseCacheStrategy.cacheResponseThe cached response to return or validate; or null if this call doesn't use a cache.修饰符和类型方法说明static booleanCacheStrategy.isCacheable(Response response, Request request) Returns true ifresponsecan be stored to later serve another request.voidHandles a conditional request hit by updating the stored cache response with the headers fromnetwork.参数类型为Response的com.lark.oapi.okhttp.internal.cache中的构造器 -
com.lark.oapi.okhttp.internal.connection中Response的使用
修饰符和类型方法说明Exchange.openResponseBody(Response response) voidExchange.responseHeadersEnd(Response response) -
com.lark.oapi.okhttp.internal.http中Response的使用
修饰符和类型方法说明BridgeInterceptor.intercept(Interceptor.Chain chain) CallServerInterceptor.intercept(Interceptor.Chain chain) RetryAndFollowUpInterceptor.intercept(Interceptor.Chain chain) RealInterceptorChain.proceed(Request request, Transmitter transmitter, Exchange exchange) 修饰符和类型方法说明static longHttpHeaders.contentLength(Response response) static StatusLinestatic booleanReturns true if the response must have a (possibly 0-length) body.static booleanHttpHeaders.hasVaryAll(Response response) Returns true if a Vary header contains an asterisk.ExchangeCodec.openResponseBodySource(Response response) longExchangeCodec.reportedContentLength(Response response) static HeadersHttpHeaders.varyHeaders(Response response) Returns the subset of the headers inresponse's request that impact the content of response's body.static booleanHttpHeaders.varyMatches(Response cachedResponse, Headers cachedRequest, Request newRequest) Returns true if none of the Vary headers have changed betweencachedRequestandnewRequest. -
com.lark.oapi.okhttp.internal.http1中Response的使用
修饰符和类型方法说明Http1ExchangeCodec.openResponseBodySource(Response response) longHttp1ExchangeCodec.reportedContentLength(Response response) voidHttp1ExchangeCodec.skipConnectBody(Response response) The response body from a CONNECT should be empty, but if it is not then we should consume it before proceeding. -
com.lark.oapi.okhttp.internal.http2中Response的使用
修饰符和类型方法说明Http2ExchangeCodec.openResponseBodySource(Response response) longHttp2ExchangeCodec.reportedContentLength(Response response) -
com.lark.oapi.okhttp.internal.ws中Response的使用
参数类型为Response的com.lark.oapi.okhttp.internal.ws中的方法 -
com.lark.oapi.ws中Response的使用
参数类型为Response的com.lark.oapi.ws中的方法