Package com.google.api.client.http.apache.v5 (1.45.1)

HTTP Transport library for Google API's based on Apache HTTP Client/Core version 5.x

Classes

Apache5HttpRequest

Apache5HttpTransport

Thread-safe HTTP transport based on the Apache HTTP Client library.

Implementation is thread-safe, as long as any parameter modification to the Apache HTTP Client is only done at initialization time. For maximum efficiency, applications should use a single globally-shared instance of the HTTP transport.

Default settings are specified in #newDefaultHttpClient(). Use the #Apache5HttpTransport(HttpClient) constructor to override the Apache HTTP Client used. Please read the Apache HTTP Client 5.x configuration example for more complex configuration options.

Apache5ResponseContent

Class that wraps an org.apache.hc.core5.http.HttpEntity's content InputStream along with the ClassicHttpResponse that contains this entity. The main purpose is to be able to close the response as well as the content input stream when #close() is called, in order to not break the existing contract with clients using apache v4 that only required them to close the input stream to clean up all resources.