gerrit/lib/httpcomponents/BUCK
David Pursehouse 5636d41ba5 Use httpcomponents fluent API in acceptance tests
By using the fluent API we can simplify the HTTP connection calls.

We no longer need to explicitly set the max connections per route and
max total connections. Internally the fluent API's Executor [1] uses
a PoolingHttpClientConnectionManager with maximum 100 connections per
route and a total maximum of 200 connections. These maximums are not
as high as the ones we were previously using, but those were most
likely over-estimated anyway.

[1] http://hc.apache.org/httpcomponents-client-ga/fluent-hc/apidocs/org/apache/http/client/fluent/Executor.html

Change-Id: Ibab7ff76736f9ba063df28addc9a786bbaaadfe7
2015-05-28 17:15:36 +09:00

42 lines
1.1 KiB
Python

include_defs('//lib/maven.defs')
VERSION = '4.4.1'
maven_jar(
name = 'fluent-hc',
id = 'org.apache.httpcomponents:fluent-hc:' + VERSION,
bin_sha1 = '96fb842b68a44cc640c661186828b60590c71261',
src_sha1 = '702515612b2b94ce3374ed5b579d38cbd308eb4f',
license = 'Apache2.0',
deps = [':httpclient']
)
maven_jar(
name = 'httpclient',
id = 'org.apache.httpcomponents:httpclient:' + VERSION,
bin_sha1 = '016d0bc512222f1253ee6b64d389c84e22f697f0',
src_sha1 = '30cb4791019c7280227e027b01814f4964a02482',
license = 'Apache2.0',
deps = [
'//lib/commons:codec',
':httpcore',
'//lib/log:jcl-over-slf4j',
],
)
maven_jar(
name = 'httpcore',
id = 'org.apache.httpcomponents:httpcore:' + VERSION,
bin_sha1 = 'f5aa318bda4c6c8d688c9d00b90681dcd82ce636',
src_sha1 = '9700be0d0a331691654a8e901943c9a74e33c5fc',
license = 'Apache2.0',
)
maven_jar(
name = 'httpmime',
id = 'org.apache.httpcomponents:httpmime:' + VERSION,
bin_sha1 = '2f8757f5ac5e38f46c794e5229d1f3c522e9b1df',
src_sha1 = '5394d3715181a87009032335a55b0a9789f6e26f',
license = 'Apache2.0',
)