17 Commits

Author SHA1 Message Date
HoneyryderChuck
fa2fd818fe added explicit response closing in tests 2020-11-22 15:55:43 +00:00
HoneyryderChuck
7c08527cb9 added support for :compression_threshold_size, in order to bypass compression when not worth it 2020-04-27 00:13:51 +01:00
HoneyryderChuck
d7dd3c432f added a test for the identity encoding 2020-03-21 18:08:20 +00:00
HoneyryderChuck
108d9257c8 added support for HTTP#with_ methods
these will reapply options accordingly (i.e. HTTPX.with_headers(...)).

Because we now have these, HTTPX.headers and HTTPX.timeout have been
deprecated.
2020-03-10 18:58:31 +00:00
HoneyryderChuck
a059726b9e compression: added some behaviours from net-http
After looking at net-http code, decided to adopt the following
behaviour:

* do not send accept-encoding when sending Range header
* remove content-encoding from response headers as we decode them

in order for user code to track what was decoded, added
HTTPX::Response::Body#encodings, which returns the array of encodings
for which the body was successfully decoded
2019-10-12 20:55:16 +01:00
HoneyryderChuck
7e70ffe4ed realign multi-line calls in test/ 2019-03-16 17:17:00 +00:00
HoneyryderChuck
c1c0c536eb Client -> Session (signal this as deprecation, as this is public API 2019-03-16 16:32:33 +00:00
HoneyryderChuck
4be12daa00 verify_status receives response and raises when not a proper response 2018-03-20 20:08:24 +00:00
HoneyryderChuck
12ae330d7f wrong engine 2018-01-28 23:37:32 +00:00
HoneyryderChuck
3c16999b53 do not do brotli tests on jruby 2018-01-28 23:20:25 +00:00
HoneyryderChuck
861d69c409 fixed all remaining rubocop fails 2018-01-28 23:01:33 +00:00
HoneyryderChuck
2b1ab8b6b6 rubocop auto-corrections according to some basic rules for now 2018-01-28 22:33:41 +00:00
HoneyryderChuck
402a8ad2d4 added test for brotli request body compression 2018-01-14 20:35:32 +00:00
HoneyryderChuck
815a1177d6 added test 2018-01-13 22:04:54 +00:00
HoneyryderChuck
2f67f0ad15 added tests for request body compression 2017-12-22 15:04:18 +02:00
HoneyryderChuck
b480249d0b added more compression tests, specially one to test the accept-encoding headers 2017-12-22 13:16:49 +02:00
HoneyryderChuck
b55911277a added compression plugin and tests (for now, failing) 2017-12-22 10:10:46 +02:00