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
Methods in com.google.api.client.http that return HttpHeadersModifier and TypeMethodDescriptionHttpHeaders.addWarning(String warning) Adds the"Warning"header ornullfor none.HttpHeaders.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 ornullfor none.HttpRequest.getResponseHeaders()Returns the HTTP response headers.Sets the"Accept"header ornullfor none.HttpHeaders.setAcceptEncoding(String acceptEncoding) Sets the"Accept-Encoding"header ornullfor none.Sets the"Age"header ornullfor none.HttpHeaders.setAuthenticate(String authenticate) Sets the"WWW-Authenticate"header ornullfor none.HttpHeaders.setAuthorization(String authorization) Sets the"Authorization"header ornullfor none.HttpHeaders.setAuthorization(List<String> authorization) Sets the"Authorization"header ornullfor none.HttpHeaders.setBasicAuthentication(String username, String password) Sets theHttpHeaders.authorizationheader as specified in Basic Authentication Scheme.HttpHeaders.setCacheControl(String cacheControl) Sets the"Cache-Control"header ornullfor none.HttpHeaders.setContentEncoding(String contentEncoding) Sets the"Content-Encoding"header ornullfor none.HttpHeaders.setContentLength(Long contentLength) Sets the"Content-Length"header ornullfor none.HttpHeaders.setContentMD5(String contentMD5) Sets the"Content-MD5"header ornullfor none.HttpHeaders.setContentRange(String contentRange) Sets the"Content-Range"header ornullfor none.HttpHeaders.setContentType(String contentType) Sets the"Content-Type"header ornullfor none.Sets the"Cookie"header ornullfor none.Sets the"Date"header ornullfor none.Sets the"ETag"header ornullfor none.HttpHeaders.setExpires(String expires) Sets the"Expires"header ornullfor none.HttpHeaders.setIfMatch(String ifMatch) Sets the"If-Match"header ornullfor none.HttpHeaders.setIfModifiedSince(String ifModifiedSince) Sets the"If-Modified-Since"header ornullfor none.HttpHeaders.setIfNoneMatch(String ifNoneMatch) Sets the"If-None-Match"header ornullfor none.HttpHeaders.setIfRange(String ifRange) Sets the"If-Range"header ornullfor none.HttpHeaders.setIfUnmodifiedSince(String ifUnmodifiedSince) Sets the"If-Unmodified-Since"header ornullfor none.HttpHeaders.setLastModified(String lastModified) Sets the"Last-Modified"header ornullfor none.HttpHeaders.setLocation(String location) Sets the"Location"header ornullfor none.HttpHeaders.setMimeVersion(String mimeVersion) Sets the"MIME-Version"header ornullfor none.Sets the"Range"header ornullfor none.HttpHeaders.setRetryAfter(String retryAfter) Sets the"Retry-After"header ornullfor none.HttpHeaders.setUserAgent(String userAgent) Sets the"User-Agent"header ornullfor none.Methods in com.google.api.client.http with parameters of type HttpHeadersModifier and TypeMethodDescriptionfinal voidHttpHeaders.fromHttpHeaders(HttpHeaders headers) Puts all headers of theHttpHeadersobject into thisHttpHeadersobject.booleanHttpRequest.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 voidOpenCensusUtils.propagateTracingContext(io.opencensus.trace.Span span, HttpHeaders headers) Propagate information of current tracing context.static voidHttpHeaders.serializeHeadersForMultipartRequests(HttpHeaders headers, StringBuilder logbuf, Logger logger, Writer writer) Serializes headers to anWriterfor 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 ornullfor 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) 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 voidAtom.setSlugHeader(HttpHeaders headers, String value) Sets the"Slug"header, properly escaping the header value.