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.xml.atom |
Beta Utilities for Atom XML. |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpHeaders.addWarning(String warning)
Adds the
"Warning" header or null for none. |
HttpHeaders |
HttpHeaders.clone() |
HttpHeaders |
HttpResponseException.getHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpResponseException.Builder.getHeaders()
Returns the HTTP response headers.
|
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 |
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.setAge(Long age)
Sets the
"Age" 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.setIfRange(String ifRange)
Sets the
"If-Range" 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 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.
|
static void |
OpenCensusUtils.propagateTracingContext(io.opencensus.trace.Span span,
HttpHeaders headers)
Propagate information of current tracing context.
|
static void |
HttpHeaders.serializeHeadersForMultipartRequests(HttpHeaders headers,
StringBuilder logbuf,
Logger logger,
Writer writer)
Serializes headers to an
Writer for Multi-part requests. |
HttpResponseException.Builder |
HttpResponseException.Builder.setHeaders(HttpHeaders headers)
Sets the HTTP response headers.
|
MultipartContent.Part |
MultipartContent.Part.setHeaders(HttpHeaders headers)
Sets the HTTP headers or
null for none. |
HttpRequest |
HttpRequest.setHeaders(HttpHeaders headers)
Sets the HTTP request headers.
|
HttpRequest |
HttpRequest.setResponseHeaders(HttpHeaders responseHeaders)
Sets the HTTP response headers.
|
Constructor and Description |
---|
Builder(int statusCode,
String statusMessage,
HttpHeaders headers) |
Part(HttpHeaders headers,
HttpContent content) |
Modifier and Type | Method and Description |
---|---|
static void |
Atom.setSlugHeader(HttpHeaders headers,
String value)
Sets the
"Slug" header, properly escaping the header value. |
Copyright © 2011–2019 Google. All rights reserved.