httpx 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/doc/release_notes/0_11_1.md +5 -0
  4. data/doc/release_notes/0_11_2.md +5 -0
  5. data/doc/release_notes/0_11_3.md +5 -0
  6. data/doc/release_notes/0_12_0.md +55 -0
  7. data/doc/release_notes/0_13_0.md +58 -0
  8. data/lib/httpx.rb +2 -1
  9. data/lib/httpx/adapters/faraday.rb +4 -6
  10. data/lib/httpx/altsvc.rb +1 -0
  11. data/lib/httpx/chainable.rb +2 -2
  12. data/lib/httpx/connection.rb +80 -28
  13. data/lib/httpx/connection/http1.rb +19 -6
  14. data/lib/httpx/connection/http2.rb +32 -25
  15. data/lib/httpx/io.rb +16 -3
  16. data/lib/httpx/io/ssl.rb +35 -24
  17. data/lib/httpx/io/tcp.rb +48 -28
  18. data/lib/httpx/io/tls.rb +218 -0
  19. data/lib/httpx/io/tls/box.rb +365 -0
  20. data/lib/httpx/io/tls/context.rb +199 -0
  21. data/lib/httpx/io/tls/ffi.rb +390 -0
  22. data/lib/httpx/io/udp.rb +3 -2
  23. data/lib/httpx/io/unix.rb +27 -12
  24. data/lib/httpx/options.rb +11 -23
  25. data/lib/httpx/parser/http1.rb +4 -4
  26. data/lib/httpx/plugins/aws_sdk_authentication.rb +81 -0
  27. data/lib/httpx/plugins/aws_sigv4.rb +218 -0
  28. data/lib/httpx/plugins/compression.rb +21 -9
  29. data/lib/httpx/plugins/compression/brotli.rb +8 -6
  30. data/lib/httpx/plugins/compression/deflate.rb +4 -7
  31. data/lib/httpx/plugins/compression/gzip.rb +2 -2
  32. data/lib/httpx/plugins/cookies/set_cookie_parser.rb +1 -1
  33. data/lib/httpx/plugins/digest_authentication.rb +1 -1
  34. data/lib/httpx/plugins/follow_redirects.rb +1 -1
  35. data/lib/httpx/plugins/h2c.rb +43 -58
  36. data/lib/httpx/plugins/internal_telemetry.rb +93 -0
  37. data/lib/httpx/plugins/multipart.rb +2 -0
  38. data/lib/httpx/plugins/multipart/encoder.rb +4 -9
  39. data/lib/httpx/plugins/proxy.rb +1 -1
  40. data/lib/httpx/plugins/proxy/http.rb +1 -1
  41. data/lib/httpx/plugins/proxy/socks4.rb +8 -0
  42. data/lib/httpx/plugins/proxy/socks5.rb +8 -0
  43. data/lib/httpx/plugins/push_promise.rb +3 -2
  44. data/lib/httpx/plugins/retries.rb +2 -2
  45. data/lib/httpx/plugins/stream.rb +6 -6
  46. data/lib/httpx/plugins/upgrade.rb +83 -0
  47. data/lib/httpx/plugins/upgrade/h2.rb +54 -0
  48. data/lib/httpx/pool.rb +14 -6
  49. data/lib/httpx/registry.rb +1 -7
  50. data/lib/httpx/request.rb +11 -1
  51. data/lib/httpx/resolver/https.rb +3 -11
  52. data/lib/httpx/response.rb +14 -7
  53. data/lib/httpx/selector.rb +5 -0
  54. data/lib/httpx/session.rb +25 -2
  55. data/lib/httpx/transcoder/body.rb +3 -5
  56. data/lib/httpx/version.rb +1 -1
  57. data/sig/chainable.rbs +2 -1
  58. data/sig/connection/http1.rbs +3 -2
  59. data/sig/connection/http2.rbs +5 -3
  60. data/sig/options.rbs +7 -20
  61. data/sig/plugins/aws_sdk_authentication.rbs +17 -0
  62. data/sig/plugins/aws_sigv4.rbs +64 -0
  63. data/sig/plugins/compression.rbs +5 -3
  64. data/sig/plugins/compression/brotli.rbs +1 -1
  65. data/sig/plugins/compression/deflate.rbs +1 -1
  66. data/sig/plugins/compression/gzip.rbs +1 -1
  67. data/sig/plugins/cookies.rbs +0 -1
  68. data/sig/plugins/digest_authentication.rbs +0 -1
  69. data/sig/plugins/expect.rbs +0 -2
  70. data/sig/plugins/follow_redirects.rbs +0 -2
  71. data/sig/plugins/h2c.rbs +5 -10
  72. data/sig/plugins/persistent.rbs +0 -1
  73. data/sig/plugins/proxy.rbs +0 -1
  74. data/sig/plugins/push_promise.rbs +1 -1
  75. data/sig/plugins/retries.rbs +0 -4
  76. data/sig/plugins/upgrade.rbs +23 -0
  77. data/sig/response.rbs +3 -1
  78. metadata +48 -26
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.11.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-01-15 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
@@ -47,36 +47,41 @@ extra_rdoc_files:
47
47
  - LICENSE.txt
48
48
  - README.md
49
49
  - doc/release_notes/0_0_1.md
50
- - doc/release_notes/0_1_0.md
51
- - doc/release_notes/0_0_5.md
50
+ - doc/release_notes/0_0_2.md
51
+ - doc/release_notes/0_0_3.md
52
52
  - doc/release_notes/0_0_4.md
53
- - doc/release_notes/0_6_5.md
54
- - doc/release_notes/0_6_1.md
55
- - doc/release_notes/0_7_0.md
56
- - doc/release_notes/0_6_0.md
57
- - doc/release_notes/0_10_2.md
58
- - doc/release_notes/0_8_2.md
59
- - doc/release_notes/0_6_4.md
60
- - doc/release_notes/0_9_0.md
61
- - doc/release_notes/0_6_3.md
53
+ - doc/release_notes/0_0_5.md
54
+ - doc/release_notes/0_10_0.md
62
55
  - doc/release_notes/0_10_1.md
56
+ - doc/release_notes/0_10_2.md
63
57
  - doc/release_notes/0_11_0.md
64
- - doc/release_notes/0_8_1.md
65
- - doc/release_notes/0_5_0.md
66
- - doc/release_notes/0_6_7.md
58
+ - doc/release_notes/0_11_1.md
59
+ - doc/release_notes/0_11_2.md
60
+ - doc/release_notes/0_11_3.md
61
+ - doc/release_notes/0_12_0.md
62
+ - doc/release_notes/0_13_0.md
63
+ - doc/release_notes/0_1_0.md
64
+ - doc/release_notes/0_2_0.md
65
+ - doc/release_notes/0_2_1.md
66
+ - doc/release_notes/0_3_0.md
67
+ - doc/release_notes/0_3_1.md
68
+ - doc/release_notes/0_4_0.md
67
69
  - doc/release_notes/0_4_1.md
70
+ - doc/release_notes/0_5_0.md
68
71
  - doc/release_notes/0_5_1.md
69
- - doc/release_notes/0_6_6.md
70
- - doc/release_notes/0_4_0.md
72
+ - doc/release_notes/0_6_0.md
73
+ - doc/release_notes/0_6_1.md
71
74
  - doc/release_notes/0_6_2.md
72
- - doc/release_notes/0_10_0.md
75
+ - doc/release_notes/0_6_3.md
76
+ - doc/release_notes/0_6_4.md
77
+ - doc/release_notes/0_6_5.md
78
+ - doc/release_notes/0_6_6.md
79
+ - doc/release_notes/0_6_7.md
80
+ - doc/release_notes/0_7_0.md
73
81
  - doc/release_notes/0_8_0.md
74
- - doc/release_notes/0_3_0.md
75
- - doc/release_notes/0_2_1.md
76
- - doc/release_notes/0_0_3.md
77
- - doc/release_notes/0_0_2.md
78
- - doc/release_notes/0_3_1.md
79
- - doc/release_notes/0_2_0.md
82
+ - doc/release_notes/0_8_1.md
83
+ - doc/release_notes/0_8_2.md
84
+ - doc/release_notes/0_9_0.md
80
85
  files:
81
86
  - LICENSE.txt
82
87
  - README.md
@@ -89,6 +94,11 @@ files:
89
94
  - doc/release_notes/0_10_1.md
90
95
  - doc/release_notes/0_10_2.md
91
96
  - doc/release_notes/0_11_0.md
97
+ - doc/release_notes/0_11_1.md
98
+ - doc/release_notes/0_11_2.md
99
+ - doc/release_notes/0_11_3.md
100
+ - doc/release_notes/0_12_0.md
101
+ - doc/release_notes/0_13_0.md
92
102
  - doc/release_notes/0_1_0.md
93
103
  - doc/release_notes/0_2_0.md
94
104
  - doc/release_notes/0_2_1.md
@@ -129,12 +139,18 @@ files:
129
139
  - lib/httpx/io.rb
130
140
  - lib/httpx/io/ssl.rb
131
141
  - lib/httpx/io/tcp.rb
142
+ - lib/httpx/io/tls.rb
143
+ - lib/httpx/io/tls/box.rb
144
+ - lib/httpx/io/tls/context.rb
145
+ - lib/httpx/io/tls/ffi.rb
132
146
  - lib/httpx/io/udp.rb
133
147
  - lib/httpx/io/unix.rb
134
148
  - lib/httpx/loggable.rb
135
149
  - lib/httpx/options.rb
136
150
  - lib/httpx/parser/http1.rb
137
151
  - lib/httpx/plugins/authentication.rb
152
+ - lib/httpx/plugins/aws_sdk_authentication.rb
153
+ - lib/httpx/plugins/aws_sigv4.rb
138
154
  - lib/httpx/plugins/basic_authentication.rb
139
155
  - lib/httpx/plugins/compression.rb
140
156
  - lib/httpx/plugins/compression/brotli.rb
@@ -148,6 +164,7 @@ files:
148
164
  - lib/httpx/plugins/expect.rb
149
165
  - lib/httpx/plugins/follow_redirects.rb
150
166
  - lib/httpx/plugins/h2c.rb
167
+ - lib/httpx/plugins/internal_telemetry.rb
151
168
  - lib/httpx/plugins/multipart.rb
152
169
  - lib/httpx/plugins/multipart/encoder.rb
153
170
  - lib/httpx/plugins/multipart/mime_type_detector.rb
@@ -162,6 +179,8 @@ files:
162
179
  - lib/httpx/plugins/rate_limiter.rb
163
180
  - lib/httpx/plugins/retries.rb
164
181
  - lib/httpx/plugins/stream.rb
182
+ - lib/httpx/plugins/upgrade.rb
183
+ - lib/httpx/plugins/upgrade/h2.rb
165
184
  - lib/httpx/pool.rb
166
185
  - lib/httpx/registry.rb
167
186
  - lib/httpx/request.rb
@@ -195,6 +214,8 @@ files:
195
214
  - sig/options.rbs
196
215
  - sig/parser/http1.rbs
197
216
  - sig/plugins/authentication.rbs
217
+ - sig/plugins/aws_sdk_authentication.rbs
218
+ - sig/plugins/aws_sigv4.rbs
198
219
  - sig/plugins/basic_authentication.rbs
199
220
  - sig/plugins/compression.rbs
200
221
  - sig/plugins/compression/brotli.rbs
@@ -218,6 +239,7 @@ files:
218
239
  - sig/plugins/rate_limiter.rbs
219
240
  - sig/plugins/retries.rbs
220
241
  - sig/plugins/stream.rbs
242
+ - sig/plugins/upgrade.rbs
221
243
  - sig/pool.rbs
222
244
  - sig/registry.rbs
223
245
  - sig/request.rbs
@@ -258,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
280
  - !ruby/object:Gem::Version
259
281
  version: '0'
260
282
  requirements: []
261
- rubygems_version: 3.1.4
283
+ rubygems_version: 3.2.3
262
284
  signing_key:
263
285
  specification_version: 4
264
286
  summary: HTTPX, to the future, and beyond