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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Package com.google.api.client.http.apache.v2 (2.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0 (latest)](/java/docs/reference/google-http-client/latest/com.google.api.client.http.apache.v2)\n- [1.47.1](/java/docs/reference/google-http-client/1.47.1/com.google.api.client.http.apache.v2)\n- [1.46.3](/java/docs/reference/google-http-client/1.46.3/com.google.api.client.http.apache.v2)\n- [1.45.3](/java/docs/reference/google-http-client/1.45.3/com.google.api.client.http.apache.v2)\n- [1.44.2](/java/docs/reference/google-http-client/1.44.2/com.google.api.client.http.apache.v2)\n- [1.43.2](/java/docs/reference/google-http-client/1.43.2/com.google.api.client.http.apache.v2)\n- [1.42.3](/java/docs/reference/google-http-client/1.42.3/com.google.api.client.http.apache.v2)\n- [1.41.8](/java/docs/reference/google-http-client/1.41.8/com.google.api.client.http.apache.v2) \nHTTP Transport library for Google API's based on Apache HTTP Client version 4.5+.\n\nClasses\n-------\n\n### [ApacheHttpTransport](/java/docs/reference/google-http-client/latest/com.google.api.client.http.apache.v2.ApacheHttpTransport)\n\nThread-safe HTTP transport based on the Apache HTTP Client library.\n\nImplementation is thread-safe, as long as any parameter modification to the [Apache HTTP Client](/java/docs/reference/google-http-client/latest/com.google.api.client.http.apache.v2.ApacheHttpTransport#com_google_api_client_http_apache_v2_ApacheHttpTransport_getHttpClient__) is only done at initialization time. For maximum efficiency,\napplications should use a single globally-shared instance of the HTTP transport.\n\nDefault settings are specified in [#newDefaultHttpClient()](/java/docs/reference/google-http-client/latest/com.google.api.client.http.apache.v2.ApacheHttpTransport#com_google_api_client_http_apache_v2_ApacheHttpTransport_newDefaultHttpClient__). Use the [#ApacheHttpTransport(HttpClient)](/java/docs/reference/google-http-client/latest/com.google.api.client.http.apache.v2.ApacheHttpTransport#com_google_api_client_http_apache_v2_ApacheHttpTransport_ApacheHttpTransport_org_apache_http_client_HttpClient_) constructor to override the Apache HTTP Client used. Please\nread the [Apache HTTP Client connection management tutorial](https://hc.apache.org/httpcomponents-client-4.5.x/current/tutorial/pdf/httpclient-tutorial.pdf) for more complex configuration options."]]