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.
|
com.google.api.client.http.json |
JSON HTTP library based on the pluggable HTTP library.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpHeaders.clone() |
HttpHeaders |
HttpRequest.getHeaders()
Returns the HTTP request headers.
|
HttpHeaders |
HttpResponse.getHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpResponseException.getHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpRequest.getResponseHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpHeaders.set(String fieldName,
Object value) |
HttpHeaders |
HttpHeaders.setAccept(String accept)
Sets the
"Accept" header or null for none. |
HttpHeaders |
HttpHeaders.setAcceptEncoding(String acceptEncoding)
Sets the
"Accept-Encoding" header or null for none. |
HttpHeaders |
HttpHeaders.setAuthenticate(String authenticate)
Sets the
"WWW-Authenticate" header or null for none. |
HttpHeaders |
HttpHeaders.setAuthorization(List<String> authorization)
Sets the
"Authorization" header or null for none. |
HttpHeaders |
HttpHeaders.setAuthorization(String authorization)
Sets the
"Authorization" header or null for none. |
HttpHeaders |
HttpHeaders.setBasicAuthentication(String username,
String password)
Sets the
authorization header as specified in Basic Authentication Scheme. |
HttpHeaders |
HttpHeaders.setCacheControl(String cacheControl)
Sets the
"Cache-Control" header or null for none. |
HttpHeaders |
HttpHeaders.setContentEncoding(String contentEncoding)
Sets the
"Content-Encoding" header or null for none. |
HttpHeaders |
HttpHeaders.setContentLength(Long contentLength)
Sets the
"Content-Length" header or null for none. |
HttpHeaders |
HttpHeaders.setContentMD5(String contentMD5)
Sets the
"Content-MD5" header or null for none. |
HttpHeaders |
HttpHeaders.setContentRange(String contentRange)
Sets the
"Content-Range" header or null for none. |
HttpHeaders |
HttpHeaders.setContentType(String contentType)
Sets the
"Content-Type" header or null for none. |
HttpHeaders |
HttpHeaders.setCookie(String cookie)
Sets the
"Cookie" header or null for none. |
HttpHeaders |
HttpHeaders.setDate(String date)
Sets the
"Date" header or null for none. |
HttpHeaders |
HttpHeaders.setETag(String etag)
Sets the
"ETag" header or null for none. |
HttpHeaders |
HttpHeaders.setExpires(String expires)
Sets the
"Expires" header or null for none. |
HttpHeaders |
HttpHeaders.setIfMatch(String ifMatch)
Sets the
"If-Match" header or null for none. |
HttpHeaders |
HttpHeaders.setIfModifiedSince(String ifModifiedSince)
Sets the
"If-Modified-Since" header or null for none. |
HttpHeaders |
HttpHeaders.setIfNoneMatch(String ifNoneMatch)
Sets the
"If-None-Match" header or null for none. |
HttpHeaders |
HttpHeaders.setIfUnmodifiedSince(String ifUnmodifiedSince)
Sets the
"If-Unmodified-Since" header or null for none. |
HttpHeaders |
HttpHeaders.setLastModified(String lastModified)
Sets the
"Last-Modified" header or null for none. |
HttpHeaders |
HttpHeaders.setLocation(String location)
Sets the
"Location" header or null for none. |
HttpHeaders |
HttpHeaders.setMimeVersion(String mimeVersion)
Sets the
"MIME-Version" header or null for none. |
HttpHeaders |
HttpHeaders.setRange(String range)
Sets the
"Range" header or null for none. |
HttpHeaders |
HttpHeaders.setRetryAfter(String retryAfter)
Sets the
"Retry-After" header or null for none. |
HttpHeaders |
HttpHeaders.setUserAgent(String userAgent)
Sets the
"User-Agent" header or null for none. |
Modifier and Type | Method and Description |
---|---|
void |
HttpHeaders.fromHttpHeaders(HttpHeaders headers)
Puts all headers of the
HttpHeaders object into this HttpHeaders object. |
boolean |
HttpRequest.handleRedirect(int statusCode,
HttpHeaders headers)
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 headers,
StringBuilder logbuf,
Logger logger,
Writer writer)
Serializes headers to an
Writer for Multi-part requests. |
HttpRequest |
HttpRequest.setHeaders(HttpHeaders headers)
Sets the HTTP request headers.
|
HttpRequest |
HttpRequest.setResponseHeaders(HttpHeaders responseHeaders)
Sets the HTTP response headers.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
JsonHttpRequest.getLastResponseHeaders()
Deprecated.
Gets the HTTP headers of the last response or
null for none. |
HttpHeaders |
JsonHttpRequest.getRequestHeaders()
Deprecated.
Gets the HTTP headers used for the JSON HTTP request.
|
Modifier and Type | Method and Description |
---|---|
JsonHttpRequest |
JsonHttpRequest.setRequestHeaders(HttpHeaders headers)
Deprecated.
Sets the HTTP headers used for the JSON HTTP request.
|
Copyright © 2011-2012 Google. All Rights Reserved.