| Modifier and Type | Method | Description |
|---|---|---|
Headers |
Headers.Builder.build() |
|
Headers |
MultipartBody.Part.headers() |
|
Headers |
Request.headers() |
|
Headers |
Response.headers() |
|
static Headers |
Headers.of(String... namesAndValues) |
Returns headers for the alternating header names and values.
|
static Headers |
Headers.of(Map<String,String> headers) |
Returns headers for the header names and values in the
Map. |
| Modifier and Type | Method | Description |
|---|---|---|
Headers.Builder |
Headers.Builder.addAll(Headers headers) |
Adds all headers from an existing collection.
|
MultipartBody.Builder |
MultipartBody.Builder.addPart(Headers headers,
RequestBody body) |
Add a part to the body.
|
static MultipartBody.Part |
MultipartBody.Part.create(Headers headers,
RequestBody body) |
|
Request.Builder |
Request.Builder.headers(Headers headers) |
Removes all headers on this builder and adds
headers. |
Response.Builder |
Response.Builder.headers(Headers headers) |
Removes all headers on this builder and adds
headers. |
static CacheControl |
CacheControl.parse(Headers headers) |
Returns the cache directives of
headers. |
static List<Cookie> |
Cookie.parseAll(HttpUrl url,
Headers headers) |
Returns all of the cookies from a set of HTTP response headers.
|
Copyright © 2021. All rights reserved.