httpx 0.20.3 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/doc/release_notes/0_13_0.md +1 -1
  3. data/doc/release_notes/0_20_4.md +17 -0
  4. data/doc/release_notes/0_20_5.md +3 -0
  5. data/doc/release_notes/0_21_0.md +94 -0
  6. data/lib/httpx/connection/http1.rb +2 -1
  7. data/lib/httpx/connection.rb +41 -2
  8. data/lib/httpx/errors.rb +18 -0
  9. data/lib/httpx/extensions.rb +36 -13
  10. data/lib/httpx/io/unix.rb +1 -1
  11. data/lib/httpx/options.rb +7 -3
  12. data/lib/httpx/plugins/circuit_breaker/circuit.rb +76 -0
  13. data/lib/httpx/plugins/circuit_breaker/circuit_store.rb +44 -0
  14. data/lib/httpx/plugins/circuit_breaker.rb +115 -0
  15. data/lib/httpx/plugins/compression.rb +1 -1
  16. data/lib/httpx/plugins/cookies.rb +1 -1
  17. data/lib/httpx/plugins/expect.rb +1 -1
  18. data/lib/httpx/plugins/multipart/decoder.rb +1 -1
  19. data/lib/httpx/plugins/proxy.rb +7 -1
  20. data/lib/httpx/plugins/response_cache/store.rb +39 -19
  21. data/lib/httpx/plugins/response_cache.rb +98 -8
  22. data/lib/httpx/plugins/retries.rb +1 -1
  23. data/lib/httpx/plugins/webdav.rb +78 -0
  24. data/lib/httpx/pool.rb +1 -1
  25. data/lib/httpx/request.rb +15 -25
  26. data/lib/httpx/resolver/https.rb +2 -7
  27. data/lib/httpx/resolver/multi.rb +1 -1
  28. data/lib/httpx/resolver/native.rb +2 -1
  29. data/lib/httpx/resolver/resolver.rb +12 -2
  30. data/lib/httpx/response.rb +30 -9
  31. data/lib/httpx/timers.rb +3 -0
  32. data/lib/httpx/transcoder/body.rb +1 -1
  33. data/lib/httpx/transcoder/form.rb +1 -1
  34. data/lib/httpx/transcoder/json.rb +19 -3
  35. data/lib/httpx/transcoder/xml.rb +57 -0
  36. data/lib/httpx/transcoder.rb +1 -0
  37. data/lib/httpx/version.rb +1 -1
  38. data/sig/buffer.rbs +1 -1
  39. data/sig/chainable.rbs +1 -0
  40. data/sig/connection.rbs +12 -4
  41. data/sig/errors.rbs +13 -0
  42. data/sig/io.rbs +6 -0
  43. data/sig/options.rbs +4 -1
  44. data/sig/plugins/circuit_breaker.rbs +61 -0
  45. data/sig/plugins/compression/brotli.rbs +1 -1
  46. data/sig/plugins/compression/deflate.rbs +1 -1
  47. data/sig/plugins/compression/gzip.rbs +3 -3
  48. data/sig/plugins/compression.rbs +1 -1
  49. data/sig/plugins/multipart.rbs +1 -1
  50. data/sig/plugins/proxy/socks5.rbs +3 -2
  51. data/sig/plugins/proxy.rbs +1 -1
  52. data/sig/plugins/response_cache.rbs +24 -4
  53. data/sig/registry.rbs +5 -4
  54. data/sig/request.rbs +7 -1
  55. data/sig/resolver/native.rbs +5 -2
  56. data/sig/response.rbs +6 -1
  57. data/sig/timers.rbs +1 -1
  58. data/sig/transcoder/json.rbs +4 -1
  59. data/sig/transcoder/xml.rbs +21 -0
  60. data/sig/transcoder.rbs +2 -2
  61. data/sig/utils.rbs +2 -2
  62. metadata +17 -3
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.20.3
4
+ version: 0.21.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: 2022-07-03 00:00:00.000000000 Z
11
+ date: 2022-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2-next
@@ -84,6 +84,9 @@ extra_rdoc_files:
84
84
  - doc/release_notes/0_20_1.md
85
85
  - doc/release_notes/0_20_2.md
86
86
  - doc/release_notes/0_20_3.md
87
+ - doc/release_notes/0_20_4.md
88
+ - doc/release_notes/0_20_5.md
89
+ - doc/release_notes/0_21_0.md
87
90
  - doc/release_notes/0_2_0.md
88
91
  - doc/release_notes/0_2_1.md
89
92
  - doc/release_notes/0_3_0.md
@@ -160,6 +163,9 @@ files:
160
163
  - doc/release_notes/0_20_1.md
161
164
  - doc/release_notes/0_20_2.md
162
165
  - doc/release_notes/0_20_3.md
166
+ - doc/release_notes/0_20_4.md
167
+ - doc/release_notes/0_20_5.md
168
+ - doc/release_notes/0_21_0.md
163
169
  - doc/release_notes/0_2_0.md
164
170
  - doc/release_notes/0_2_1.md
165
171
  - doc/release_notes/0_3_0.md
@@ -213,6 +219,9 @@ files:
213
219
  - lib/httpx/plugins/aws_sdk_authentication.rb
214
220
  - lib/httpx/plugins/aws_sigv4.rb
215
221
  - lib/httpx/plugins/basic_authentication.rb
222
+ - lib/httpx/plugins/circuit_breaker.rb
223
+ - lib/httpx/plugins/circuit_breaker/circuit.rb
224
+ - lib/httpx/plugins/circuit_breaker/circuit_store.rb
216
225
  - lib/httpx/plugins/compression.rb
217
226
  - lib/httpx/plugins/compression/brotli.rb
218
227
  - lib/httpx/plugins/compression/deflate.rb
@@ -249,6 +258,7 @@ files:
249
258
  - lib/httpx/plugins/stream.rb
250
259
  - lib/httpx/plugins/upgrade.rb
251
260
  - lib/httpx/plugins/upgrade/h2.rb
261
+ - lib/httpx/plugins/webdav.rb
252
262
  - lib/httpx/pmatch_extensions.rb
253
263
  - lib/httpx/pool.rb
254
264
  - lib/httpx/punycode.rb
@@ -271,6 +281,7 @@ files:
271
281
  - lib/httpx/transcoder/chunker.rb
272
282
  - lib/httpx/transcoder/form.rb
273
283
  - lib/httpx/transcoder/json.rb
284
+ - lib/httpx/transcoder/xml.rb
274
285
  - lib/httpx/utils.rb
275
286
  - lib/httpx/version.rb
276
287
  - sig/buffer.rbs
@@ -283,6 +294,7 @@ files:
283
294
  - sig/errors.rbs
284
295
  - sig/headers.rbs
285
296
  - sig/httpx.rbs
297
+ - sig/io.rbs
286
298
  - sig/loggable.rbs
287
299
  - sig/options.rbs
288
300
  - sig/parser/http1.rbs
@@ -294,6 +306,7 @@ files:
294
306
  - sig/plugins/aws_sdk_authentication.rbs
295
307
  - sig/plugins/aws_sigv4.rbs
296
308
  - sig/plugins/basic_authentication.rbs
309
+ - sig/plugins/circuit_breaker.rbs
297
310
  - sig/plugins/compression.rbs
298
311
  - sig/plugins/compression/brotli.rbs
299
312
  - sig/plugins/compression/deflate.rbs
@@ -338,6 +351,7 @@ files:
338
351
  - sig/transcoder/chunker.rbs
339
352
  - sig/transcoder/form.rbs
340
353
  - sig/transcoder/json.rbs
354
+ - sig/transcoder/xml.rbs
341
355
  - sig/utils.rbs
342
356
  homepage: https://gitlab.com/honeyryderchuck/httpx
343
357
  licenses:
@@ -364,7 +378,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
364
378
  - !ruby/object:Gem::Version
365
379
  version: '0'
366
380
  requirements: []
367
- rubygems_version: 3.2.32
381
+ rubygems_version: 3.3.7
368
382
  signing_key:
369
383
  specification_version: 4
370
384
  summary: HTTPX, to the future, and beyond