Package com.google.api.client.http
Subset of HTTP 1.1 needed from the specification in RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1.
- Since:
- 1.0
- Author:
- Yaniv Inbar
-
Interface Summary Interface Description BackOffPolicy Deprecated. (scheduled to be removed in 1.18) UseHttpBackOffUnsuccessfulResponseHandler
instead.HttpBackOffUnsuccessfulResponseHandler.BackOffRequired HttpContent Serializes HTTP request content into an output stream.HttpEncoding HTTP content encoding.HttpExecuteInterceptor HTTP request execute interceptor to intercept the start ofHttpRequest.execute()
before executing the HTTP request.HttpIOExceptionHandler HttpRequestInitializer HTTP request initializer.HttpResponseInterceptor HTTP response interceptor to intercept the end ofHttpRequest.execute()
before returning a successful response or throwing an exception for an unsuccessful response.HttpUnsuccessfulResponseHandler Interface which handles abnormal HTTP responses (in other words not 2XX). -
Class Summary Class Description AbstractHttpContent Abstract implementation of an HTTP content with typical options.AbstractInputStreamContent Serializes HTTP request content from an input stream into an output stream.BasicAuthentication Basic authentication HTTP request initializer as specified in Basic Authentication SchemeByteArrayContent Concrete implementation ofAbstractInputStreamContent
that generates repeatable input streams based on the contents of byte array.EmptyContent Empty HTTP content of length zero just to forceHttpRequest.execute()
to add the headerContent-Length: 0
.ExponentialBackOffPolicy Deprecated. (scheduled to be removed in 1.18).ExponentialBackOffPolicy.Builder Deprecated. FileContent Concrete implementation ofAbstractInputStreamContent
that generates repeatable input streams based on the contents of a file.GenericUrl URL builder in which the query parameters are specified as generic data key/value pairs, based on the specification RFC 3986: Uniform Resource Identifier (URI).GZipEncoding GZip HTTP content encoding.HttpBackOffIOExceptionHandler HttpBackOffUnsuccessfulResponseHandler HttpEncodingStreamingContent Streaming content based on an HTTP encoding.HttpHeaders Stores HTTP headers used in an HTTP request or response, as defined in Header Field Definitions.HttpMediaType HTTP Media-type as specified in the HTTP RFC ( {@link "http://tools.ietf.org/html/rfc2616#section-3.7"}).HttpMethods HTTP request method constants specified in RFC 2616 Section 5.1.1.HttpRequest HTTP request.HttpRequestFactory Thread-safe light-weight HTTP request factory layer on top of the HTTP transport that has an optionalHTTP request initializer
for initializing requests.HttpResponse HTTP response.HttpResponseException.Builder Builder.HttpStatusCodes Constants enumerating the HTTP status codes.HttpTransport Thread-safe abstract HTTP transport.InputStreamContent Concrete implementation ofAbstractInputStreamContent
that simply handles the transfer of data from an input stream to an output stream.LowLevelHttpRequest Low-level HTTP request.LowLevelHttpResponse Low-level HTTP response.MultipartContent Serializes MIME multipart content as specified by RFC 2387: The MIME Multipart/Related Content-type and RFC 2046: Multipurpose Internet Mail Extensions: The Multipart/mixed (primary) subtype.MultipartContent.Part Single part of a multi-part request.UriTemplate Expands URI Templates.UrlEncodedContent Implements support for HTTP form content encoding serialization of typeapplication/x-www-form-urlencoded
as specified in the HTML 4.0 Specification.UrlEncodedParser Implements support for HTTP form content encoding parsing of typeapplication/x-www-form-urlencoded
as specified in the HTML 4.0 Specification. -
Exception Summary Exception Description HttpResponseException Exception thrown when an error status code is detected in an HTTP response.