428 Commits

Author SHA1 Message Date
HoneyryderChuck
673d210fd8 fix tests not being adjusted 2023-04-18 02:34:11 +03:00
HoneyryderChuck
ee4caa552b bugfix: digest auth enabled session wasn't working if session did not have digest credentials setup yet 2023-04-18 02:08:21 +03:00
HoneyryderChuck
ba21f83827 improve coverage of cookie and aws authentication tests 2023-04-18 02:06:47 +03:00
HoneyryderChuck
8105e1128e introduce :buffer_size option
this allows to tweak connection buffer sizes, which may help optimizing
memory usage, and in this case, test the resumable retries.

wip
2023-04-17 18:09:24 +03:00
HoneyryderChuck
cb523794d7 retries: allow for resuming requests using ranges
a new feature is introduced in the `retries` plugin, whereas if an error
occurred midway response payload transfer, and the peer server signaled
(via `"accept-ranges"`) that accepts range requests, the retried request
will attempt to start over from where the previous request left off.
2023-04-17 17:19:41 +03:00
HoneyryderChuck
092e594a4b Request.verb is now an upcased string (ex: "GET")
The reference for a request verb is now the string which is used
everywhere else, instead of the symbol corresponding to it. This was an
artifact from the import from httprb, and there is no advantage in it,
since these strings are frozen in most use cases, and the
transformations from symbol to strings being performed everywhere are
prooof that keeping the atom isn't really bringing any benefit.
2023-04-17 16:54:31 +03:00
HoneyryderChuck
ea61cce815 print ruby version in tests 2023-03-29 00:12:19 +01:00
HoneyryderChuck
487cac6eef do not test ruby 2.1 and 2.2 in CI
can't build the required docker imaged anymore...
2023-03-28 23:41:37 +01:00
HoneyryderChuck
3bcf5bd5f6 renewing certs 2023-03-27 23:00:58 +01:00
HoneyryderChuck
7a76af352b fix linting 2023-03-27 22:40:55 +01:00
HoneyryderChuck
b803da48e1 updated datee for cookies test, as it's overdue 2023-02-27 19:18:01 +00:00
HoneyryderChuck
d0fcd13bf2 moving regression tests outside of docker 2023-01-25 00:58:49 +00:00
HoneyryderChuck
70511846cc only run regression tests in ruby 3.2 2023-01-22 01:16:05 +00:00
HoneyryderChuck
133a6b3d4a simplify tcp connect error recovery loop 2023-01-21 00:51:03 +00:00
HoneyryderChuck
2e7d33f917 adding ruby 3.2 to CI 2023-01-20 10:39:22 +00:00
HoneyryderChuck
d629402245 linting 2022-12-20 22:28:07 +00:00
HoneyryderChuck
f6acd9ed61 remmoved traces of website building 2022-12-04 01:26:31 +00:00
HoneyryderChuck
17297cf062 use --force-yes for 2.2 2022-11-28 23:19:34 +00:00
HoneyryderChuck
bd66b00882 force unsigned package for ruby 2.1 2022-11-28 22:55:09 +00:00
HoneyryderChuck
92737d09b5 rewriting repo links to point to new namespace 2022-11-28 22:45:44 +00:00
HoneyryderChuck
3d4fe177e3 rubocop changes 2022-11-01 22:41:42 +00:00
HoneyryderChuck
c1281a9074 native resolver: switch from nameserver if dns query fails
a behaviour has been observed behind a vpn, where when one of the
servers is unresponsive, the switch to the next nameserver wasn't
happening. Part of it was a bug in the timeout handling, but the rest
was actually the switch not happening (i.e. it'd fail on the first
server). This fixes it by switching to the next nammeserver on query
error.
2022-09-20 23:11:08 +01:00
HoneyryderChuck
535a30db25 fixing issues around typing 2022-08-13 16:34:02 +01:00
HoneyryderChuck
eb3d3f9048 implementation of the webdav plugin 2022-08-13 15:30:37 +01:00
HoneyryderChuck
c31ded54e1 circuit breaker plugin 2022-08-07 22:24:57 +01:00
HoneyryderChuck
ee49d7452c added tests for read and write timeout 2022-08-06 22:30:46 +01:00
HoneyryderChuck
43016795f3 introducing the :no_proxy option
can be passed in the `:proxy` option hash, and receives domains, as
strings, which requests should not go through the proxy.
2022-08-05 22:37:52 +01:00
HoneyryderChuck
39beff84ab added ability to check if request has been proxied 2022-08-04 14:02:44 +01:00
HoneyryderChuck
7c1ed56714 fixing local proxy list 2022-08-04 14:01:47 +01:00
HoneyryderChuck
4a0bfa3544 Merge branch 'issue-174' into 'master'
altsvc improvements

Closes #174

See merge request honeyryderchuck/httpx!207
2022-05-25 22:28:18 +00:00
HoneyryderChuck
38152e8dee fix vary header handling to deal with capitalized, test the path
directly in store
2022-05-25 23:15:30 +01:00
HoneyryderChuck
e740a38bad follow_redirects: halt redirection if no location header is present in response 2022-05-25 18:58:11 +01:00
HoneyryderChuck
b6819de30c ennabling cache test again 2022-05-23 23:56:43 +01:00
HoneyryderChuck
889c2f3f79 Merge branch 'issue-189' into 'master'
Support other auth schemes for proxies (digest, ntlm...)

Closes #189

See merge request honeyryderchuck/httpx!204
2022-05-16 22:15:29 +00:00
HoneyryderChuck
0d01f728aa introducing base_path option
This should complement the `:origin` option, in order to provide good
defaults to build REST SDKs around of.

Ex:

```ruby
HTTPX.with(origin: "https://api.this-product.com", base_path: "/v3.1")
```
2022-05-08 17:43:26 +01:00
HoneyryderChuck
c86f4be1a7 reworking auth APIs for a future 1.0 refactoring 2022-05-08 17:23:07 +01:00
HoneyryderChuck
6dcf9f0d75 enabling and adding a test for using proxy digest auth 2022-05-07 16:49:00 +01:00
HoneyryderChuck
e3191f0d6c rubocop lint 2022-05-06 17:58:13 +01:00
HoneyryderChuck
637d2f7600 fix: proxy credentials were not being used
a regression from the 0.19.x series was omitting the proxy credentials
when passed directly as proxy options (instead of being part of the URI).

Closes #188
2022-04-05 22:53:45 +01:00
HoneyryderChuck
5307b33cb6 more timmeout leeway, using Thread.kill instead (truffleruby tests) 2022-03-29 22:55:01 +01:00
HoneyryderChuck
30df921387 limit candidates resolution to the first resolv call, while also adapting the retries logic in the native resolver 2022-03-20 15:44:12 +00:00
HoneyryderChuck
35d9c15f44 bumped version to 0.19.4 2022-03-06 17:22:17 +00:00
HoneyryderChuck
552d0d859c fix truffleruby build 2022-03-06 16:33:35 +00:00
HoneyryderChuck
e9a81d6b16 enabled h2 tests which were blocked for jruby 2022-03-05 17:33:37 +00:00
HoneyryderChuck
8eee10be21 regenerated test certs, keeping ca.crt around this time 2022-03-04 23:43:05 +00:00
HoneyryderChuck
a4a60290ac jruby: add test root certificate via keytool 2022-03-04 23:43:05 +00:00
HoneyryderChuck
fc977a7c83 adding git, because bundler still requires it even if alt-ruby should not download dep 2022-02-01 23:03:59 +00:00
HoneyryderChuck
81d399a324 updated test certs (expired) 2022-02-01 22:54:59 +00:00
HoneyryderChuck
b5b0e89dd1 on Response.response=, check if it's an error before expecting to use Response API; this triggers a second exception which won't be propagated and causes a loop 2022-02-01 22:48:42 +00:00
HoneyryderChuck
06b162b6ea applying a resolver manager to hold the different family type resolvers for the pool. This allows to have multiple resolvers per type, i.e. IPv6 and IPv4 2022-01-16 22:54:56 +02:00