| Package | Description |
|---|---|
| com.google.api.client.http |
Subset of HTTP 1.1 needed from the specification in
RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1.
|
| Modifier and Type | Method and Description |
|---|---|
HttpHeaders |
HttpHeaders.clone()
|
HttpHeaders |
HttpResponse.getHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
MultipartContent.Part.getHeaders()
Returns the HTTP headers or
null for none.
|
HttpHeaders |
HttpRequest.getHeaders()
Returns the HTTP request headers.
|
HttpHeaders |
HttpResponseException.getHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpResponseException.Builder.getHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpRequest.getResponseHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpHeaders.set(String
|
HttpHeaders |
HttpHeaders.setAccept(String
Sets the
"Accept" header or
null for none.
|
HttpHeaders |
HttpHeaders.setAcceptEncoding(String
Sets the
"Accept-Encoding" header or
null for none.
|
HttpHeaders |
HttpHeaders.setAge(Long
Sets the
"Age" header or
null for none.
|
HttpHeaders |
HttpHeaders.setAuthenticate(String
Sets the
"WWW-Authenticate" header or
null for none.
|
HttpHeaders |
HttpHeaders.setAuthorization(List
Sets the
"Authorization" header or
null for none.
|
HttpHeaders |
HttpHeaders.setAuthorization(String
Sets the
"Authorization" header or
null for none.
|
HttpHeaders |
HttpHeaders.setBasicAuthentication(String
Sets the
authorization header as specified in
Basic Authentication Scheme.
|
HttpHeaders |
HttpHeaders.setCacheControl(String
Sets the
"Cache-Control" header or
null for none.
|
HttpHeaders |
HttpHeaders.setContentEncoding(String
Sets the
"Content-Encoding" header or
null for none.
|
HttpHeaders |
HttpHeaders.setContentLength(Long
Sets the
"Content-Length" header or
null for none.
|
HttpHeaders |
HttpHeaders.setContentMD5(String
Sets the
"Content-MD5" header or
null for none.
|
HttpHeaders |
HttpHeaders.setContentRange(String
Sets the
"Content-Range" header or
null for none.
|
HttpHeaders |
HttpHeaders.setContentType(String
Sets the
"Content-Type" header or
null for none.
|
HttpHeaders |
HttpHeaders.setCookie(String
Sets the
"Cookie" header or
null for none.
|
HttpHeaders |
HttpHeaders.setDate(String
Sets the
"Date" header or
null for none.
|
HttpHeaders |
HttpHeaders.setETag(String
Sets the
"ETag" header or
null for none.
|
HttpHeaders |
HttpHeaders.setExpires(String
Sets the
"Expires" header or
null for none.
|
HttpHeaders |
HttpHeaders.setIfMatch(String
Sets the
"If-Match" header or
null for none.
|
HttpHeaders |
HttpHeaders.setIfModifiedSince(String
Sets the
"If-Modified-Since" header or
null for none.
|
HttpHeaders |
HttpHeaders.setIfNoneMatch(String
Sets the
"If-None-Match" header or
null for none.
|
HttpHeaders |
HttpHeaders.setIfRange(String
Sets the
"If-Range" header or
null for none.
|
HttpHeaders |
HttpHeaders.setIfUnmodifiedSince(String
Sets the
"If-Unmodified-Since" header or
null for none.
|
HttpHeaders |
HttpHeaders.setLastModified(String
Sets the
"Last-Modified" header or
null for none.
|
HttpHeaders |
HttpHeaders.setLocation(String
Sets the
"Location" header or
null for none.
|
HttpHeaders |
HttpHeaders.setMimeVersion(String
Sets the
"MIME-Version" header or
null for none.
|
HttpHeaders |
HttpHeaders.setRange(String
Sets the
"Range" header or
null for none.
|
HttpHeaders |
HttpHeaders.setRetryAfter(String
Sets the
"Retry-After" header or
null for none.
|
HttpHeaders |
HttpHeaders.setUserAgent(String
Sets the
"User-Agent" header or
null for none.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HttpHeaders.fromHttpHeaders(HttpHeaders
Puts all headers of the
HttpHeaders object into this
HttpHeaders object.
|
boolean |
HttpRequest.handleRedirect(int statusCode, HttpHeaders
Sets up this request object to handle the necessary redirect if redirects are turned on, it is a redirect status code and the header has a location.
|
static void |
HttpHeaders.serializeHeadersForMultipartRequests(HttpHeaders
Serializes headers to an
Writer for Multi-part requests.
|
MultipartContent |
MultipartContent.Part.setHeaders(HttpHeaders
Sets the HTTP headers or
null for none.
|
HttpRequest |
HttpRequest.setHeaders(HttpHeaders
Sets the HTTP request headers.
|
HttpResponseException |
HttpResponseException.Builder.setHeaders(HttpHeaders
Sets the HTTP response headers.
|
HttpRequest |
HttpRequest.setResponseHeaders(HttpHeaders
Sets the HTTP response headers.
|
| Constructor and Description | |
|---|---|
Builder(int statusCode, String
|
|
Part(HttpHeaders
|