HoneyryderChuck
a2895d456f
regression test for bug fixed in 0.11.3
...
created a test server which removes the content-length. Taken extra
condition into account, that the close might manifest itself while
selecting on the socket; at that point we're out of the consumption
loop, so better not to deal with throwing :called
2021-02-17 00:55:05 +00:00
HoneyryderChuck
7082f63e4e
more explicit error message in multipart test
2021-02-16 18:27:05 +00:00
HoneyryderChuck
10bb2fbfd2
removed test logging
2021-02-07 15:52:28 +00:00
HoneyryderChuck
9ca4cbe68b
yield error response on frame protocol errors for a given stream
...
stream HTTP/2 framing errors were being yielded directly into the connection. This had
the issue of not closing the request, thereby causing an infinite loop
when closing the connection. This seemed to be the issue in CI.
2021-02-07 15:16:26 +00:00
HoneyryderChuck
5a9277d8f4
logging multipart retry test, this seems to be the onne hanging from time to time...
2021-02-06 16:34:47 +00:00
HoneyryderChuck
1724c0f913
waiting for localstack to be up before running the tests in CI
2021-02-06 16:24:35 +00:00
HoneyryderChuck
ef8ad355e9
show the header in the logs when aws sigv4 fails
2021-02-06 16:24:35 +00:00
HoneyryderChuck
ae1060157a
changing the name of the plugin to aws_sdk_authentication, removing depenndency on s3 gem (only aws-sdk-core)
2021-02-02 18:33:24 +00:00
HoneyryderChuck
463dad46cb
added the aws signature on top of the aws-sigv4 plugin, with support for using aws-sdk-core ready-made config
2021-02-02 18:33:24 +00:00
HoneyryderChuck
f415d1b66b
added tests for aws sigv4
2021-02-02 18:33:24 +00:00
HoneyryderChuck
cbfdfed6c4
socks5 test covering failed authenticationn path
2021-01-14 00:35:22 +00:00
HoneyryderChuck
c5512dbbeb
enable push frames in no push test in order to force refusal
2021-01-14 00:34:51 +00:00
HoneyryderChuck
a29961962b
allowing multipart requests to be retried (although, to be fair, user has to push a lot of knobs to do so)
2021-01-13 13:40:05 +00:00
HoneyryderChuck
42297cd38d
simplifying apis, testing pathnames
2021-01-13 12:27:13 +00:00
HoneyryderChuck
25d5e93248
added additional tests for the future accepted variationns of multipart parameters
2021-01-13 00:00:09 +00:00
HoneyryderChuck
e1ccae25f9
added a global store for domains not supporting 100-continue
...
it's a pretty naive implementation, as it grows unbounded, and isn't
thread safe, mostly due to negligent cost of fake fetch.
2021-01-12 23:53:18 +00:00
HoneyryderChuck
68baf484da
reshaping the way 100 responses are handled, by keeping informational status (right now working only for 100, as 101 breaks h2c)
2021-01-12 17:43:14 +00:00
HoneyryderChuck
75089a334a
added test for Socks5 connection establishment using an IP.
...
The test only tests IPv4 due to lack of support for IPv6 in the current
docker test suite, but IPv6 is expected to work as well.
2021-01-09 17:14:36 +00:00
HoneyryderChuck
0c646ced85
fixed expect 100 plugin delay feature
...
another bug gets fixed after adding a test... the delay of sending the
request body when server doesn't support the Expect-100 continue dance
wasn't using the proper API. Adapted the handling of the state machine
to be more readable and compliant as well.
2021-01-09 16:20:01 +00:00
HoneyryderChuck
fab44b5993
verifyig error responses annd deltas using internal methods
2021-01-05 18:57:39 +00:00
HoneyryderChuck
65f5e86f3f
allowing nested params also when posting multipart requests
2020-12-10 13:46:57 +00:00
HoneyryderChuck
d3a6edeecb
fixed socks4a handshake while adding more socks4 tests
...
the packet wasn't being well formed in certain situations. Also, raised
restrictions for IPv6 addresses, as hton is implemented in more recent
rubies for them as well.
2020-12-02 01:30:38 +00:00
HoneyryderChuck
201591e9fe
added test for the socks5 non-happy path
2020-12-02 01:30:38 +00:00
HoneyryderChuck
3bf3223c60
fixing another loop error when proxy needs to be resolved, by resolving
...
fails
While adding yet another test, an edge case was found where a proxy had
to be resolved, but when the resolving failed, the process wasn't
recovering from it.
2020-11-30 12:16:36 +00:00
HoneyryderChuck
34dc7df495
ensurinng that the push promise test sends requests sequentially
2020-11-26 17:20:13 +00:00
HoneyryderChuck
350a030473
sleep skews a bit under load, increasing it for reliability
2020-11-24 17:21:29 +00:00
HoneyryderChuck
cb3e57e10d
fixing log_exception signature
2020-11-24 16:38:46 +00:00
HoneyryderChuck
6cc24b63f5
forcing request fo fail with exception when there's an error (since we're supporting only 1 stream request at a time, this should be straightforward)
2020-11-24 00:42:54 +00:00
HoneyryderChuck
742d877c76
added #each_line method to stream response
2020-11-24 00:42:52 +00:00
HoneyryderChuck
1b29e062a0
added streaming plugin tests
2020-11-22 22:32:38 +00:00
HoneyryderChuck
fa2fd818fe
added explicit response closing in tests
2020-11-22 15:55:43 +00:00
HoneyryderChuck
1b26977d16
updated rubocop to 1.0.0 on possible rubies, making the necessary changes
2020-11-07 15:36:21 +00:00
HoneyryderChuck
5f735cc6f5
Merge branch 'issue-50' into 'master'
...
rate limiter plugin
See merge request honeyryderchuck/httpx!99
2020-11-06 17:25:06 +00:00
HoneyryderChuck
62467ff5c5
persistent and retries plugin now work well together
...
When persistent and retries are loaded separately, the options won't be
just overwritten; instead, changes will be kept, and max_retries will be
the max value of what both plugins load (in case the user sets its own
option)
2020-11-05 16:20:16 +00:00
HoneyryderChuck
048501e940
adding and integrating the new cookie modules for: store, jar, cookie, and domain name
2020-11-04 00:32:01 +00:00
HoneyryderChuck
959429b386
improved cookies testing, to test also the array-of-cookie-hashes case; does not accept a string anymore, as besides untested, it wasn't working properly
2020-11-03 16:33:11 +00:00
HoneyryderChuck
01552757a0
supporting the retry-after header for redirections as well
2020-10-31 14:15:28 +00:00
HoneyryderChuck
6f2048952f
updating retry_after call test (2 arguments now)
2020-10-31 02:09:31 +00:00
HoneyryderChuck
1934e84bcd
added the rate limiter tests
2020-10-31 01:08:44 +00:00
HoneyryderChuck
2a49fbc78f
moved custom plugins used in tests to the support dir
2020-10-31 01:07:26 +00:00
HoneyryderChuck
754bb6b5ed
Merge branch 'issue-86' into 'master'
...
:compression_threshold_size
Closes #86
See merge request honeyryderchuck/httpx!86
2020-04-28 10:32:45 +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
93a4b933af
added support for :expect_threshold_size, to disable expect: 100-continue based on body bytesize sent
2020-04-26 23:52:14 +01:00
HoneyryderChuck
af2524cf6e
abstracted retry request verification to an helper method
2020-04-18 17:40:29 +01:00
HoneyryderChuck
727c6112b3
added test for retrying change requests; this will prevent the recent issue with persistent connections failing in the first retried request with body
2020-03-28 15:44:46 +00:00
HoneyryderChuck
d7dd3c432f
added a test for the identity encoding
2020-03-21 18:08:20 +00:00
HoneyryderChuck
d4ec28e4a6
testing pushed\?
2020-03-15 13:31:58 +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
926ad27011
expect plugin
...
this plugin sets all body requests to send the expect-100 header before
sending any payload, a la curl. It recovers from 417 as well.
2020-03-10 18:57:42 +00:00
HoneyryderChuck
98cce7df65
added retry_after option to the retries plugin
2020-02-10 00:09:50 +00:00