Skip to content

Commit d8c7f67

Browse files
committed
update docs to offer Apache5Http.*
1 parent e21f993 commit d8c7f67

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/http-transport.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ There are three built-in low-level HTTP transports:
1919

2020
1. [`NetHttpTransport`][net-http-transport]: based on [`HttpURLConnection`][http-url-connection]
2121
that is found in all Java SDKs, and thus usually the simplest choice.
22+
1. [`Apache5HttpTransport`][apache-http-transport]: based on the popular
23+
[Apache 5.x HttpClient][apache5-http-client] that allows for more customization.
2224
1. [`ApacheHttpTransport`][apache-http-transport]: based on the popular
23-
[Apache HttpClient][apache-http-client] that allows for more customization.
25+
[Apache 4.x HttpClient][apache-http-client] that allows for more customization. Note that this transport implementation
26+
relies on [Apache 4.x HttpCore][apache-http-core] which has reached end of life. It is recommended to use
27+
[`Apache5HttpTransport`][apache-http-transport] instead.
2428
1. [`UrlFetchTransport`][url-fetch-transport]: based on the [URL Fetch Java API][url-fetch] in the
2529
Google App Engine SDK.
2630

@@ -124,7 +128,10 @@ HttpRequestFactory requestFactory = transport.createRequestFactory(new MyInitial
124128
[net-http-transport]: https://googleapis.dev/java/google-http-client/latest/index.html?com/google/api/client/http/javanet/NetHttpTransport.html
125129
[http-url-connection]: http://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html
126130
[apache-http-transport]: https://googleapis.dev/java/google-http-client/latest/index.html?com/google/api/client/http/apache/v2/ApacheHttpTransport.html
127-
[apache-http-client]: http://hc.apache.org/httpcomponents-client-ga/index.html
131+
[apache5-http-transport]: https://github.com/googleapis/google-http-java-client/blob/de8743587d1415e8a6046096ac1fc0a5e81490c3/google-http-client-apache-v5/src/main/java/com/google/api/client/http/apache/v5/Apache5HttpTransport.java
132+
[apache-http-client]: https://hc.apache.org/httpcomponents-client-4.5.x/index.html
133+
[apache-http-core]: https://hc.apache.org/httpcomponents-core-4.4.x/index.html
134+
[apache5-http-client]: https://hc.apache.org/httpcomponents-client-5.3.x/index.html
128135
[url-fetch-transport]: https://googleapis.dev/java/google-http-client/latest/index.html?com/google/api/client/extensions/appengine/http/UrlFetchTransport.html
129136
[url-fetch]: https://cloud.google.com/appengine/docs/java/javadoc/com/google/appengine/api/urlfetch/package-summary
130137
[logger]: https://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html

0 commit comments

Comments
 (0)