2298 Commits

Author SHA1 Message Date
HoneyryderChuck
0cb169afab set ndots to 1 when none parsed from resolv.conf
as per https://www.man7.org/linux/man-pages/man5/resolv.conf.5.html, default is 1
2023-10-21 00:02:25 +01:00
HoneyryderChuck
61ce888e47 Merge branch 'fix-readme' into 'master'
Fix basic_auth doc in README.md

See merge request os85/httpx!280
2023-10-16 21:11:34 +00:00
Chulki Lee
e8f1657821 Update file README.md 2023-10-16 17:48:45 +00:00
HoneyryderChuck
f089d57d7d added rdoc to most public accessible classes 2023-10-14 16:02:11 +01:00
HoneyryderChuck
2de2b026be bump release to 1.0.2 v1.0.2 2023-10-13 18:12:20 +01:00
HoneyryderChuck
9d3dd72b80 fixing datadog min version 2023-10-13 18:06:33 +01:00
HoneyryderChuck
c1da8d29fc readded support for older datadog versions... 2023-10-13 17:52:42 +01:00
HoneyryderChuck
1fa9846f56 set min versio of http-2-next to 1.0.1 2023-10-13 17:04:11 +01:00
HoneyryderChuck
ba6fc820b7 bump version to 0.24.7 2023-10-13 16:55:09 +01:00
HoneyryderChuck
16ecdd2b57 readded support for older datadog versions... 2023-10-13 16:54:22 +01:00
HoneyryderChuck
2896134f67 Merge branch 'http-2-next-patch' into 'master'
http/2: do not interpret MAX_CONCURRENT_STREAMS as request cap

See merge request os85/httpx!278
2023-10-13 15:07:34 +00:00
HoneyryderChuck
97a34cfcbc wip: using master 2023-10-13 15:56:10 +01:00
HoneyryderChuck
ca75148e86 http/2: do not interpret MAX_CONCURRENT_STREAMS as request cap
a misinterpretation of the spec on http-2-next led to the introduction
of the max_requests option, a cap of requests on a given connection,
which in http/2 case, would be initialized with MAX_CONCURRENT_STREAMS,
which means something else.

This has been fixed already in http-2-next, and this is the summary of
changes required to support it.

The `max_requests` option is kept, as it can still be useful from a user
perspective, but the default in http/2 is now INFINITY, which disables
it effectively. The HTTP/1 cap is bumped to 200, but it may fall as
well soon.
2023-10-13 15:56:10 +01:00
HoneyryderChuck
834873638d Merge branch 'iaddict-master-patch-44799' into 'master'
Fix and enhance grpc method definition

See merge request os85/httpx!277
2023-10-12 22:16:34 +00:00
HoneyryderChuck
4618845a97 fix datadog version used 2023-10-12 23:07:01 +01:00
HoneyryderChuck
5db6e28534 linting updates 2023-10-12 22:39:26 +01:00
HoneyryderChuck
fb86669872 fixing datadog integration, removing support for versions older than 1.13.0 2023-10-12 18:56:41 +01:00
Thomas Steinhausen
013f24ba80 Test camel case grpc procedure names
Show that a camel case procedure can be called with underscored name.
2023-10-11 10:54:27 +02:00
Thomas Steinhausen
96eae65da1 Fix and enhance rpc method definition
Snake case named procedures could not be called. Now two methods are defined, where one is underscore named and the second has the originla procedure name as called on the service.
2023-10-10 17:55:48 +00:00
HoneyryderChuck
a3ac1993e9 bumped version to 1.0.1 v1.0.1 2023-10-04 15:07:02 +01:00
HoneyryderChuck
5ca0dcdf8d Merge branch 'issue-249' into 'master'
bugfix: do not inflate empty chunks

Closes #249

See merge request os85/httpx!276
2023-10-04 14:06:31 +00:00
HoneyryderChuck
8a66233148 bugfix: do not inflate empty chunks
Closes #249
2023-10-04 14:56:01 +01:00
HoneyryderChuck
377abc84c7 bump version to 1.0.0 v1.0.0 2023-10-03 13:46:52 +01:00
HoneyryderChuck
ede4ccdf30 bumping timeout for webdav lock 2023-10-03 12:19:12 +01:00
HoneyryderChuck
7e06957cc2 using ghcr.io/graalvm/truffleruby-community namespace for truffleruby image 2023-10-03 10:57:29 +01:00
HoneyryderChuck
ad7da6edfa bumping http-2-next version 2023-10-03 10:53:50 +01:00
HoneyryderChuck
62868f64b3 Merge branch 'c-breaker' 2023-09-29 15:01:00 +01:00
HoneyryderChuck
09be632cd9 circuit breaker: use Enumerator#with_object, treat uris as strings to avoid allocation 2023-09-29 10:29:09 +01:00
HoneyryderChuck
803718108e protect circuit store access with a mutex
a session object may be used from different threads, we want the same rules to apply in such a case
2023-09-28 22:56:03 +01:00
HoneyryderChuck
f8020b9c10 bump version to 0.24.6 2023-09-28 12:40:04 +01:00
HoneyryderChuck
11210e3a23 Merge branch 'v1' into 'master'
circuit breaker improvs

See merge request os85/httpx!275
2023-09-28 11:32:22 +00:00
HoneyryderChuck
c48969996e fix for jruby returning empty string in alpn_protocol 2023-09-28 10:57:43 +01:00
HoneyryderChuck
c7ccc9eaf6 prepare for base64 being removed from default gems 2023-09-27 18:12:56 +01:00
HoneyryderChuck
e4869e1a4b circuit-breaker plugin. fix half-open decision to emit real request
the previous logic was relying on a random order which didn't work in practice; instead, one now reuses the max-attempts to define how many requests happen in the half-open state, and the drip rate defines how may of them will be real
2023-09-27 18:12:56 +01:00
HoneyryderChuck
dd84195db6 bump coverage by testing more edge cases
mime type detector using file, no idnx
2023-09-27 11:59:52 +01:00
HoneyryderChuck
d856ae81e0 added missing release notes 2023-09-27 11:59:52 +01:00
HoneyryderChuck
1494ba872a Merge branch 'v1' into 'master'
1.0.0

See merge request os85/httpx!270
2023-09-20 17:19:53 +00:00
HoneyryderChuck
685e6e4c7f allow multipart requests to accept tempfile
in fact, anything responding to .path, .eof?, .rewind and .read can be accepted
2023-09-20 17:57:41 +01:00
HoneyryderChuck
085cec0c8e improve coverage and simplified faraday adapter
and some other modules
2023-09-20 17:57:41 +01:00
HoneyryderChuck
288ac05508 fix: proxy plugin broke when processing a 305 use proxy redirect
the proxy plugin contained an enhancement, when used with the follow_redirects plugin, which retries a request over the received proxy. This contained a bug, which was now caught with the added test
2023-09-20 17:57:41 +01:00
HoneyryderChuck
c777aa779e test socks5 no auth methods error path 2023-09-20 17:57:41 +01:00
HoneyryderChuck
d55bfec80c fix: system resolv timeout raise ResolveTimeoutError instead of ResolveError 2023-09-20 17:57:41 +01:00
HoneyryderChuck
e88956a16f improving coverage of tests for proxy module 2023-09-20 17:57:41 +01:00
HoneyryderChuck
aab30279ac allow default errors catch up besides retry on 2023-09-20 17:57:41 +01:00
HoneyryderChuck
2f9247abfb use default HTTP/2 handshake strategy for grpc 2023-09-20 17:57:41 +01:00
HoneyryderChuck
0d58408c58 compression plugins for gzip and deflate supported by default
most of the code was moved to the transcoder layer.

The `compression_threshold_size` option has been removed.

The `:compression/brotli` plugin becomes only ´:brotli`, and depends on
the new transcoding APIs.

options to skip compression and decompression were added.
2023-09-20 17:57:41 +01:00
HoneyryderChuck
3f73d2e3ce multipart supported by default
the plugin was now moved to the transcoder layer, where it is available
from the get-go.
2023-09-20 17:57:41 +01:00
HoneyryderChuck
896914e189 lint change 2023-09-20 17:57:41 +01:00
HoneyryderChuck
4f587c5508 renaming authenticationn modules to just auth
* `:authentication` plugin becomes `:auth`
  * `authentication` helper becomes `authorization`
* `:basic_authentication` plugin becomes `:basic_auth`
  * `:basic_authentication` helper is removed
* `:digest_authentication` plugin becomes `:digest_auth`
  * `:digest_authentication` helper is removed
* `:ntlm_authentication` plugin becomes `:ntlm_auth`
  * `:ntlm_authentication` helper is removed
2023-09-20 17:57:41 +01:00
HoneyryderChuck
a9cb0a69a2 seting :read_timeout and :write_timeout by default 2023-09-20 17:57:41 +01:00