类的使用
com.lark.oapi.okhttp.Headers
使用Headers的程序包
程序包
说明
An HTTP+HTTP/2 client for Android and Java applications.
-
com.lark.oapi.okhttp中Headers的使用
返回Headers的com.lark.oapi.okhttp中的方法修饰符和类型方法说明Headers.Builder.build()MultipartBody.Part.headers()Request.headers()Response.headers()static HeadersReturns headers for the alternating header names and values.static HeadersReturns headers for the header names and values in theMap.Response.trailers()Returns the trailers after the HTTP response, which may be empty.参数类型为Headers的com.lark.oapi.okhttp中的方法修饰符和类型方法说明Adds all headers from an existing collection.MultipartBody.Builder.addPart(Headers headers, RequestBody body) Add a part to the body.static MultipartBody.PartMultipartBody.Part.create(Headers headers, RequestBody body) Removes all headers on this builder and addsheaders.Removes all headers on this builder and addsheaders.static CacheControlReturns the cache directives ofheaders.Returns all of the cookies from a set of HTTP response headers. -
com.lark.oapi.okhttp.internal中Headers的使用
参数类型为Headers的com.lark.oapi.okhttp.internal中的方法 -
com.lark.oapi.okhttp.internal.connection中Headers的使用
-
com.lark.oapi.okhttp.internal.http中Headers的使用
修饰符和类型方法说明ExchangeCodec.trailers()Returns the trailers after the HTTP response.static HeadersHttpHeaders.varyHeaders(Headers requestHeaders, Headers responseHeaders) Returns the subset of the headers inrequestHeadersthat impact the content of response's body.static HeadersHttpHeaders.varyHeaders(Response response) Returns the subset of the headers inresponse's request that impact the content of response's body.修饰符和类型方法说明static longHttpHeaders.contentLength(Headers headers) static booleanHttpHeaders.hasVaryAll(Headers responseHeaders) Returns true if a Vary header contains an asterisk.HttpHeaders.parseChallenges(Headers responseHeaders, String headerName) Parse RFC 7235 challenges.static voidHttpHeaders.receiveHeaders(CookieJar cookieJar, HttpUrl url, Headers headers) HttpHeaders.varyFields(Headers responseHeaders) Returns the names of the request headers that need to be checked for equality when caching.static HeadersHttpHeaders.varyHeaders(Headers requestHeaders, Headers responseHeaders) Returns the subset of the headers inrequestHeadersthat 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中Headers的使用
修饰符和类型方法说明voidHttp1ExchangeCodec.writeRequest(Headers headers, String requestLine) Returns bytes of a request header for sending on an HTTP transport. -
com.lark.oapi.okhttp.internal.http2中Headers的使用
修饰符和类型方法说明Http2Stream.takeHeaders()Removes and returns the stream's received response headers, blocking if necessary until headers have been received.Http2ExchangeCodec.trailers()Http2Stream.trailers()Returns the trailers.修饰符和类型方法说明voidHttp2Stream.enqueueTrailers(Headers trailers) static Response.BuilderHttp2ExchangeCodec.readHttp2HeadersList(Headers headerBlock, Protocol protocol) Returns headers for a name value block containing an HTTP/2 response.