httpx 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes/0_13_0.md +58 -0
- data/lib/httpx/chainable.rb +2 -2
- data/lib/httpx/connection.rb +17 -13
- data/lib/httpx/connection/http1.rb +4 -2
- data/lib/httpx/connection/http2.rb +1 -1
- data/lib/httpx/io/ssl.rb +30 -17
- data/lib/httpx/io/tcp.rb +45 -26
- data/lib/httpx/io/unix.rb +27 -12
- data/lib/httpx/options.rb +11 -23
- data/lib/httpx/plugins/compression.rb +20 -8
- data/lib/httpx/plugins/compression/brotli.rb +8 -6
- data/lib/httpx/plugins/compression/deflate.rb +2 -2
- data/lib/httpx/plugins/compression/gzip.rb +2 -2
- data/lib/httpx/plugins/digest_authentication.rb +1 -1
- data/lib/httpx/plugins/follow_redirects.rb +1 -1
- data/lib/httpx/plugins/h2c.rb +43 -58
- data/lib/httpx/plugins/internal_telemetry.rb +1 -1
- data/lib/httpx/plugins/retries.rb +1 -1
- data/lib/httpx/plugins/stream.rb +3 -1
- data/lib/httpx/plugins/upgrade.rb +83 -0
- data/lib/httpx/plugins/upgrade/h2.rb +54 -0
- data/lib/httpx/pool.rb +14 -5
- data/lib/httpx/response.rb +5 -5
- data/lib/httpx/version.rb +1 -1
- data/sig/chainable.rbs +2 -1
- data/sig/connection/http1.rbs +1 -0
- data/sig/options.rbs +7 -20
- data/sig/plugins/aws_sigv4.rbs +0 -1
- data/sig/plugins/compression.rbs +5 -3
- data/sig/plugins/compression/brotli.rbs +1 -1
- data/sig/plugins/compression/deflate.rbs +1 -1
- data/sig/plugins/compression/gzip.rbs +1 -1
- data/sig/plugins/cookies.rbs +0 -1
- data/sig/plugins/digest_authentication.rbs +0 -1
- data/sig/plugins/expect.rbs +0 -2
- data/sig/plugins/follow_redirects.rbs +0 -2
- data/sig/plugins/h2c.rbs +5 -10
- data/sig/plugins/persistent.rbs +0 -1
- data/sig/plugins/proxy.rbs +0 -1
- data/sig/plugins/retries.rbs +0 -4
- data/sig/plugins/upgrade.rbs +23 -0
- data/sig/response.rbs +3 -1
- metadata +7 -2
data/sig/response.rbs
CHANGED
@@ -37,6 +37,8 @@ module HTTPX
|
|
37
37
|
include _ToStr
|
38
38
|
|
39
39
|
@state: :idle | :memory | :buffer
|
40
|
+
@threshold_size: Integer
|
41
|
+
@window_size: Integer
|
40
42
|
|
41
43
|
def each: () { (String) -> void } -> void
|
42
44
|
| () -> Enumerable[String]
|
@@ -48,7 +50,7 @@ module HTTPX
|
|
48
50
|
|
49
51
|
private
|
50
52
|
|
51
|
-
def initialize: (Response,
|
53
|
+
def initialize: (Response, options) -> untyped
|
52
54
|
def rewind: () -> void
|
53
55
|
def transition: () -> void
|
54
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-2-next
|
@@ -59,6 +59,7 @@ extra_rdoc_files:
|
|
59
59
|
- doc/release_notes/0_11_2.md
|
60
60
|
- doc/release_notes/0_11_3.md
|
61
61
|
- doc/release_notes/0_12_0.md
|
62
|
+
- doc/release_notes/0_13_0.md
|
62
63
|
- doc/release_notes/0_1_0.md
|
63
64
|
- doc/release_notes/0_2_0.md
|
64
65
|
- doc/release_notes/0_2_1.md
|
@@ -97,6 +98,7 @@ files:
|
|
97
98
|
- doc/release_notes/0_11_2.md
|
98
99
|
- doc/release_notes/0_11_3.md
|
99
100
|
- doc/release_notes/0_12_0.md
|
101
|
+
- doc/release_notes/0_13_0.md
|
100
102
|
- doc/release_notes/0_1_0.md
|
101
103
|
- doc/release_notes/0_2_0.md
|
102
104
|
- doc/release_notes/0_2_1.md
|
@@ -177,6 +179,8 @@ files:
|
|
177
179
|
- lib/httpx/plugins/rate_limiter.rb
|
178
180
|
- lib/httpx/plugins/retries.rb
|
179
181
|
- lib/httpx/plugins/stream.rb
|
182
|
+
- lib/httpx/plugins/upgrade.rb
|
183
|
+
- lib/httpx/plugins/upgrade/h2.rb
|
180
184
|
- lib/httpx/pool.rb
|
181
185
|
- lib/httpx/registry.rb
|
182
186
|
- lib/httpx/request.rb
|
@@ -235,6 +239,7 @@ files:
|
|
235
239
|
- sig/plugins/rate_limiter.rbs
|
236
240
|
- sig/plugins/retries.rbs
|
237
241
|
- sig/plugins/stream.rbs
|
242
|
+
- sig/plugins/upgrade.rbs
|
238
243
|
- sig/pool.rbs
|
239
244
|
- sig/registry.rbs
|
240
245
|
- sig/request.rbs
|