httpx 1.8.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/release_notes/1_7_1.md +1 -2
- data/doc/release_notes/1_8_1.md +27 -0
- data/doc/release_notes/1_8_2.md +30 -0
- data/lib/httpx/adapters/datadog.rb +9 -0
- data/lib/httpx/adapters/faraday.rb +2 -2
- data/lib/httpx/adapters/webmock.rb +8 -1
- data/lib/httpx/buffer.rb +5 -0
- data/lib/httpx/connection/http1.rb +6 -12
- data/lib/httpx/connection/http2.rb +38 -10
- data/lib/httpx/connection.rb +86 -27
- data/lib/httpx/errors.rb +3 -0
- data/lib/httpx/headers.rb +2 -2
- data/lib/httpx/io/ssl.rb +26 -17
- data/lib/httpx/io/tcp.rb +11 -4
- data/lib/httpx/io/unix.rb +2 -2
- data/lib/httpx/loggable.rb +11 -4
- data/lib/httpx/options.rb +6 -2
- data/lib/httpx/plugins/auth/digest.rb +1 -1
- data/lib/httpx/plugins/auth.rb +17 -7
- data/lib/httpx/plugins/callbacks.rb +12 -0
- data/lib/httpx/plugins/digest_auth.rb +4 -0
- data/lib/httpx/plugins/fiber_concurrency.rb +25 -1
- data/lib/httpx/plugins/follow_redirects.rb +21 -9
- data/lib/httpx/plugins/oauth.rb +4 -2
- data/lib/httpx/plugins/persistent.rb +33 -2
- data/lib/httpx/plugins/proxy.rb +9 -3
- data/lib/httpx/plugins/push_promise.rb +2 -2
- data/lib/httpx/plugins/retries.rb +15 -8
- data/lib/httpx/plugins/server_sent_events.rb +1 -1
- data/lib/httpx/plugins/ssrf_filter.rb +1 -1
- data/lib/httpx/plugins/stream.rb +2 -2
- data/lib/httpx/plugins/stream_bidi.rb +2 -0
- data/lib/httpx/plugins/tracing.rb +17 -4
- data/lib/httpx/pool.rb +2 -2
- data/lib/httpx/request/body.rb +10 -7
- data/lib/httpx/request.rb +27 -12
- data/lib/httpx/resolver/cache/base.rb +1 -8
- data/lib/httpx/resolver/https.rb +20 -20
- data/lib/httpx/resolver/native.rb +11 -0
- data/lib/httpx/resolver/resolver.rb +4 -0
- data/lib/httpx/resolver/system.rb +5 -2
- data/lib/httpx/response/body.rb +2 -2
- data/lib/httpx/response.rb +6 -7
- data/lib/httpx/selector.rb +6 -1
- data/lib/httpx/session.rb +11 -3
- data/lib/httpx/session_extensions.rb +2 -2
- data/lib/httpx/timers.rb +3 -0
- data/lib/httpx/transcoder/json.rb +1 -2
- data/lib/httpx/transcoder/utils/deflater.rb +1 -2
- data/lib/httpx/version.rb +1 -1
- data/sig/connection/http2.rbs +3 -0
- data/sig/connection.rbs +8 -3
- data/sig/errors.rbs +2 -2
- data/sig/io/ssl.rbs +5 -0
- data/sig/loggable.rbs +4 -0
- data/sig/plugins/auth.rbs +7 -3
- data/sig/plugins/persistent.rbs +7 -0
- data/sig/plugins/retries.rbs +4 -2
- data/sig/plugins/tracing.rbs +1 -1
- data/sig/request.rbs +2 -3
- data/sig/resolver/system.rbs +3 -0
- data/sig/selector.rbs +2 -0
- data/sig/timers.rbs +2 -0
- metadata +6 -2
data/sig/plugins/persistent.rbs
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
module HTTPX
|
|
2
2
|
module Plugins
|
|
3
3
|
module Persistent
|
|
4
|
+
SAFE_REONNECTABLE_ERRORS: Array[singleton(StandardError)]
|
|
5
|
+
|
|
4
6
|
def self.load_dependencies: (singleton(Session)) -> void
|
|
5
7
|
|
|
6
8
|
def self.extra_options: (Options) -> (Options)
|
|
7
9
|
|
|
8
10
|
module InstanceMethods
|
|
11
|
+
private
|
|
12
|
+
|
|
13
|
+
def reconnectable_error?: (StandardError error) -> bool
|
|
14
|
+
|
|
15
|
+
def safe_reconnectable_error?: (StandardError error) -> bool
|
|
9
16
|
end
|
|
10
17
|
end
|
|
11
18
|
|
data/sig/plugins/retries.rbs
CHANGED
|
@@ -45,9 +45,11 @@ module HTTPX
|
|
|
45
45
|
|
|
46
46
|
def try_partial_retry: (retriesRequest request, retriesResponse response) -> void
|
|
47
47
|
|
|
48
|
-
def prepare_to_retry: (
|
|
48
|
+
def prepare_to_retry: (retriesRequest request, retriesResponse response) -> void
|
|
49
49
|
|
|
50
|
-
def
|
|
50
|
+
def can_reconnect?: (retriesRequest request, retriesResponse response) -> bool
|
|
51
|
+
|
|
52
|
+
def when_to_retry: (retriesRequest request, retriesResponse response, retriesOptions options) -> Numeric?
|
|
51
53
|
end
|
|
52
54
|
|
|
53
55
|
module RequestMethods
|
data/sig/plugins/tracing.rbs
CHANGED
data/sig/request.rbs
CHANGED
|
@@ -17,7 +17,7 @@ module HTTPX
|
|
|
17
17
|
attr_reader response: response?
|
|
18
18
|
attr_reader http2_stream_options: { ?dependency: Integer, ?exclusive: bool, ?weight: Integer }
|
|
19
19
|
attr_reader drain_error: StandardError?
|
|
20
|
-
attr_reader active_timeouts: Array[
|
|
20
|
+
attr_reader active_timeouts: Array[Timers::Timer]
|
|
21
21
|
|
|
22
22
|
attr_writer connection: Connection?
|
|
23
23
|
attr_writer on_response_arrived: (^() -> void)?
|
|
@@ -93,7 +93,6 @@ module HTTPX
|
|
|
93
93
|
|
|
94
94
|
private
|
|
95
95
|
|
|
96
|
-
def
|
|
97
|
-
|
|
96
|
+
def reset_timers: (bool reset_total_request_timers) -> void
|
|
98
97
|
end
|
|
99
98
|
end
|
data/sig/resolver/system.rbs
CHANGED
data/sig/selector.rbs
CHANGED
data/sig/timers.rbs
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: httpx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.8.
|
|
4
|
+
version: 1.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tiago Cardoso
|
|
@@ -169,6 +169,8 @@ extra_rdoc_files:
|
|
|
169
169
|
- doc/release_notes/1_7_7.md
|
|
170
170
|
- doc/release_notes/1_7_8.md
|
|
171
171
|
- doc/release_notes/1_8_0.md
|
|
172
|
+
- doc/release_notes/1_8_1.md
|
|
173
|
+
- doc/release_notes/1_8_2.md
|
|
172
174
|
files:
|
|
173
175
|
- LICENSE.txt
|
|
174
176
|
- README.md
|
|
@@ -310,6 +312,8 @@ files:
|
|
|
310
312
|
- doc/release_notes/1_7_7.md
|
|
311
313
|
- doc/release_notes/1_7_8.md
|
|
312
314
|
- doc/release_notes/1_8_0.md
|
|
315
|
+
- doc/release_notes/1_8_1.md
|
|
316
|
+
- doc/release_notes/1_8_2.md
|
|
313
317
|
- lib/httpx.rb
|
|
314
318
|
- lib/httpx/adapters/datadog.rb
|
|
315
319
|
- lib/httpx/adapters/faraday.rb
|
|
@@ -555,7 +559,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
555
559
|
- !ruby/object:Gem::Version
|
|
556
560
|
version: '0'
|
|
557
561
|
requirements: []
|
|
558
|
-
rubygems_version:
|
|
562
|
+
rubygems_version: 4.0.16
|
|
559
563
|
specification_version: 4
|
|
560
564
|
summary: HTTPX, to the future, and beyond
|
|
561
565
|
test_files: []
|