httpx 0.12.0 → 0.13.0

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/doc/release_notes/0_13_0.md +58 -0
  3. data/lib/httpx/chainable.rb +2 -2
  4. data/lib/httpx/connection.rb +17 -13
  5. data/lib/httpx/connection/http1.rb +4 -2
  6. data/lib/httpx/connection/http2.rb +1 -1
  7. data/lib/httpx/io/ssl.rb +30 -17
  8. data/lib/httpx/io/tcp.rb +45 -26
  9. data/lib/httpx/io/unix.rb +27 -12
  10. data/lib/httpx/options.rb +11 -23
  11. data/lib/httpx/plugins/compression.rb +20 -8
  12. data/lib/httpx/plugins/compression/brotli.rb +8 -6
  13. data/lib/httpx/plugins/compression/deflate.rb +2 -2
  14. data/lib/httpx/plugins/compression/gzip.rb +2 -2
  15. data/lib/httpx/plugins/digest_authentication.rb +1 -1
  16. data/lib/httpx/plugins/follow_redirects.rb +1 -1
  17. data/lib/httpx/plugins/h2c.rb +43 -58
  18. data/lib/httpx/plugins/internal_telemetry.rb +1 -1
  19. data/lib/httpx/plugins/retries.rb +1 -1
  20. data/lib/httpx/plugins/stream.rb +3 -1
  21. data/lib/httpx/plugins/upgrade.rb +83 -0
  22. data/lib/httpx/plugins/upgrade/h2.rb +54 -0
  23. data/lib/httpx/pool.rb +14 -5
  24. data/lib/httpx/response.rb +5 -5
  25. data/lib/httpx/version.rb +1 -1
  26. data/sig/chainable.rbs +2 -1
  27. data/sig/connection/http1.rbs +1 -0
  28. data/sig/options.rbs +7 -20
  29. data/sig/plugins/aws_sigv4.rbs +0 -1
  30. data/sig/plugins/compression.rbs +5 -3
  31. data/sig/plugins/compression/brotli.rbs +1 -1
  32. data/sig/plugins/compression/deflate.rbs +1 -1
  33. data/sig/plugins/compression/gzip.rbs +1 -1
  34. data/sig/plugins/cookies.rbs +0 -1
  35. data/sig/plugins/digest_authentication.rbs +0 -1
  36. data/sig/plugins/expect.rbs +0 -2
  37. data/sig/plugins/follow_redirects.rbs +0 -2
  38. data/sig/plugins/h2c.rbs +5 -10
  39. data/sig/plugins/persistent.rbs +0 -1
  40. data/sig/plugins/proxy.rbs +0 -1
  41. data/sig/plugins/retries.rbs +0 -4
  42. data/sig/plugins/upgrade.rbs +23 -0
  43. data/sig/response.rbs +3 -1
  44. 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, ?threshold_size: Integer, ?window_size: Integer) -> untyped
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.12.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-02-22 00:00:00.000000000 Z
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