HttpClient 4.1.x 的文档在哪里?

Where is the documentation for HttpClient 4.1.x?

HttpClient 4.1.x 的文档在哪里?

我只想要 http://hc.apache.org/httpcomponents-client-4.4.x/index.html4.4.x 的文档)


我的悲伤故事

我将使用 HttpClient 4.1.x,并且无法升级到 4.3.x4.4.x,因为父模块(调用我的模块)使用 4.1.x .这是大公司的典型问题。

首先,我想找到HttpClient 4.1.x的文档,所以我打开了HttppClient的主页:

http://hc.apache.org/

但在导航中我只能找到 4.34.4 的文档。我在寻找类似 Older VersionsVersion List 的内容,但找不到任何内容。

然后我尝试搜索 (Google) 并找到了 4.2.x 主页。我希望这可能 link 到 4.1.x 文档,但运气不好。

http://hc.apache.org/httpcomponents-client-4.2.x/index.html

我擅长学习模式,所以我猜4.1.x的主页是:

http://hc.apache.org/httpcomponents-client-4.1.x/index.html

但是,再次失望:

幸运的是,Wayback Machine 可以为您提供存档站点: https://web.archive.org/web/20120103180744/http://hc.apache.org/httpcomponents-client-ga/index.html

(相当笨拙的)替代方法是自己构建它:

  1. 查看 HttpClient:svn co http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.1.3 httpclient
  2. 构建 HttpClient 的站点,跳过子项目:mvn -pl . site(子项目包含缺少的依赖项)
  3. 构建仍然会失败,但它足以在 target/site 中生成 HTML 和 PDF 文档,包括一个大教程 PDF。

这对我有用,尽管这是一个相当笨拙的过程。