Uses of Class
com.google.api.client.http.HttpHeaders
Packages that use HttpHeaders
Package
Description
Subset of HTTP 1.1 needed from the specification in RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1.
Beta
Utilities for Atom XML.
-
Uses of HttpHeaders in com.google.api.client.http
Fields in com.google.api.client.http declared as HttpHeadersModifier and TypeFieldDescriptionprivate HttpHeaders
HttpRequest.headers
HTTP request headers.(package private) HttpHeaders
HttpResponseException.Builder.headers
HTTP headers.private final HttpHeaders
HttpResponseException.headers
HTTP headers.(package private) HttpHeaders
MultipartContent.Part.headers
HTTP headers ornull
for none.private HttpHeaders
HttpRequest.responseHeaders
HTTP response headers.private final HttpHeaders
HttpHeaders.HeaderParsingFakeLevelHttpRequest.target
Methods in com.google.api.client.http that return HttpHeadersModifier and TypeMethodDescriptionHttpHeaders.clone()
HttpRequest.getHeaders()
Returns the HTTP request headers.HttpResponse.getHeaders()
Returns the HTTP response headers.HttpResponseException.Builder.getHeaders()
Returns the HTTP response headers.HttpResponseException.getHeaders()
Returns the HTTP response headers.MultipartContent.Part.getHeaders()
Returns the HTTP headers ornull
for none.HttpRequest.getResponseHeaders()
Returns the HTTP response headers.Sets the"Accept"
header ornull
for none.HttpHeaders.setAcceptEncoding
(String acceptEncoding) Sets the"Accept-Encoding"
header ornull
for none.Sets the"Age"
header ornull
for none.HttpHeaders.setAuthenticate
(String authenticate) Sets the"WWW-Authenticate"
header ornull
for none.HttpHeaders.setAuthorization
(String authorization) Sets the"Authorization"
header ornull
for none.HttpHeaders.setAuthorization
(List<String> authorization) Sets the"Authorization"
header ornull
for none.HttpHeaders.setBasicAuthentication
(String username, String password) Sets theauthorization
header as specified in Basic Authentication Scheme.HttpHeaders.setCacheControl
(String cacheControl) Sets the"Cache-Control"
header ornull
for none.HttpHeaders.setContentEncoding
(String contentEncoding) Sets the"Content-Encoding"
header ornull
for none.HttpHeaders.setContentLength
(Long contentLength) Sets the"Content-Length"
header ornull
for none.HttpHeaders.setContentMD5
(String contentMD5) Sets the"Content-MD5"
header ornull
for none.HttpHeaders.setContentRange
(String contentRange) Sets the"Content-Range"
header ornull
for none.HttpHeaders.setContentType
(String contentType) Sets the"Content-Type"
header ornull
for none.Sets the"Cookie"
header ornull
for none.Sets the"Date"
header ornull
for none.Sets the"ETag"
header ornull
for none.HttpHeaders.setExpires
(String expires) Sets the"Expires"
header ornull
for none.HttpHeaders.setIfMatch
(String ifMatch) Sets the"If-Match"
header ornull
for none.HttpHeaders.setIfModifiedSince
(String ifModifiedSince) Sets the"If-Modified-Since"
header ornull
for none.HttpHeaders.setIfNoneMatch
(String ifNoneMatch) Sets the"If-None-Match"
header ornull
for none.HttpHeaders.setIfRange
(String ifRange) Sets the"If-Range"
header ornull
for none.HttpHeaders.setIfUnmodifiedSince
(String ifUnmodifiedSince) Sets the"If-Unmodified-Since"
header ornull
for none.HttpHeaders.setLastModified
(String lastModified) Sets the"Last-Modified"
header ornull
for none.HttpHeaders.setLocation
(String location) Sets the"Location"
header ornull
for none.HttpHeaders.setMimeVersion
(String mimeVersion) Sets the"MIME-Version"
header ornull
for none.Sets the"Range"
header ornull
for none.HttpHeaders.setRetryAfter
(String retryAfter) Sets the"Retry-After"
header ornull
for none.HttpHeaders.setUserAgent
(String userAgent) Sets the"User-Agent"
header ornull
for none.Methods in com.google.api.client.http with parameters of type HttpHeadersModifier and TypeMethodDescriptionfinal void
HttpHeaders.fromHttpHeaders
(HttpHeaders headers) Puts all headers of theHttpHeaders
object into thisHttpHeaders
object.boolean
HttpRequest.handleRedirect
(int statusCode, HttpHeaders responseHeaders) 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.(package private) static void
HttpHeaders.serializeHeaders
(HttpHeaders headers, StringBuilder logbuf, StringBuilder curlbuf, Logger logger, LowLevelHttpRequest lowLevelHttpRequest) Serializes headers to anLowLevelHttpRequest
.(package private) static void
HttpHeaders.serializeHeaders
(HttpHeaders headers, StringBuilder logbuf, StringBuilder curlbuf, Logger logger, LowLevelHttpRequest lowLevelHttpRequest, Writer writer) static void
HttpHeaders.serializeHeadersForMultipartRequests
(HttpHeaders headers, StringBuilder logbuf, Logger logger, Writer writer) Serializes headers to anWriter
for Multi-part requests.HttpRequest.setHeaders
(HttpHeaders headers) Sets the HTTP request headers.HttpResponseException.Builder.setHeaders
(HttpHeaders headers) Sets the HTTP response headers.MultipartContent.Part.setHeaders
(HttpHeaders headers) Sets the HTTP headers ornull
for none.HttpRequest.setResponseHeaders
(HttpHeaders responseHeaders) Sets the HTTP response headers.Constructors in com.google.api.client.http with parameters of type HttpHeadersModifierConstructorDescriptionBuilder
(int statusCode, String statusMessage, HttpHeaders headers) (package private)
ParseHeaderState
(HttpHeaders headers, StringBuilder logger) Initializes a new ParseHeaderState.Part
(HttpHeaders headers, HttpContent content) -
Uses of HttpHeaders in com.google.api.client.xml.atom
Methods in com.google.api.client.xml.atom with parameters of type HttpHeadersModifier and TypeMethodDescriptionstatic void
Atom.setSlugHeader
(HttpHeaders headers, String value) Sets the"Slug"
header, properly escaping the header value.