| Package | Description |
|---|---|
| okhttp3 | |
| okhttp3.internal.http |
| Modifier and Type | Method and Description |
|---|---|
Headers |
Headers.Builder.build()
|
Headers |
Response.headers()
|
Headers |
Request.headers()
|
static Headers |
Headers.of(Map
Returns headers for the header names and values in the
Map.
|
static Headers |
Headers.of(String
Returns headers for the alternating header names and values.
|
| Modifier and Type | Method and Description |
|---|---|
MultipartBody |
MultipartBody.Builder.addPart(Headers
Add a part to the body.
|
static MultipartBody |
MultipartBody.Part.create(Headers
|
Response |
Response.Builder.headers(Headers
Removes all headers on this builder and adds
headers.
|
Request |
Request.Builder.headers(Headers
Removes all headers on this builder and adds
headers.
|
static CacheControl |
CacheControl.parse(Headers
Returns the cache directives of
headers.
|
static List |
Cookie.parseAll(HttpUrl
Returns all of the cookies from a set of HTTP response headers.
|
| Modifier and Type | Method and Description |
|---|---|
Headers |
Http1xStream.readHeaders()
Reads headers or trailers.
|
static Headers |
OkHeaders.varyHeaders(Headers
Returns the subset of the headers in
requestHeaders that impact the content of response's body.
|
static Headers |
OkHeaders.varyHeaders(Response
Returns the subset of the headers in
response's request that impact the content of response's body.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
OkHeaders.contentLength(Headers
|
static boolean |
OkHeaders.hasVaryAll(Headers
Returns true if a Vary header contains an asterisk.
|
static List |
OkHeaders.parseChallenges(Headers
Parse RFC 2617 challenges.
|
void |
HttpEngine.receiveHeaders(Headers
|
static Set |
OkHeaders.varyFields(Headers
Returns the names of the request headers that need to be checked for equality when caching.
|
static Headers |
OkHeaders.varyHeaders(Headers
Returns the subset of the headers in
requestHeaders that impact the content of response's body.
|
static boolean |
OkHeaders.varyMatches(Response
Returns true if none of the Vary headers have changed between
cachedRequest and
newRequest.
|
void |
Http1xStream.writeRequest(Headers
Returns bytes of a request header for sending on an HTTP transport.
|
| Constructor and Description | |
|---|---|
RealResponseBody(Headers
|