Modifier and Type | Method and Description |
---|---|
Headers |
Headers.Builder.build() |
Headers |
Request.headers() |
Headers |
MultipartBody.Part.headers() |
Headers |
Response.headers() |
static Headers |
Headers.of(Map<String,String> headers)
Returns headers for the header names and values in the
Map . |
static Headers |
Headers.of(String... namesAndValues)
Returns headers for the alternating header names and values.
|
Headers |
Response.trailers()
Returns the trailers after the HTTP response, which may be empty.
|
Modifier and Type | Method and 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 © 2019. All rights reserved.