httpx 0.15.4 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/doc/release_notes/0_16_0.md +93 -0
  3. data/lib/httpx.rb +6 -3
  4. data/lib/httpx/adapters/faraday.rb +3 -11
  5. data/lib/httpx/buffer.rb +1 -1
  6. data/lib/httpx/callbacks.rb +1 -1
  7. data/lib/httpx/chainable.rb +15 -8
  8. data/lib/httpx/connection.rb +2 -2
  9. data/lib/httpx/connection/http1.rb +3 -1
  10. data/lib/httpx/connection/http2.rb +1 -11
  11. data/lib/httpx/errors.rb +11 -11
  12. data/lib/httpx/io/ssl.rb +2 -2
  13. data/lib/httpx/io/tls.rb +1 -1
  14. data/lib/httpx/options.rb +78 -73
  15. data/lib/httpx/parser/http1.rb +1 -1
  16. data/lib/httpx/plugins/aws_sigv4.rb +10 -9
  17. data/lib/httpx/plugins/compression.rb +12 -11
  18. data/lib/httpx/plugins/cookies.rb +20 -7
  19. data/lib/httpx/plugins/cookies/cookie.rb +4 -2
  20. data/lib/httpx/plugins/cookies/jar.rb +20 -1
  21. data/lib/httpx/plugins/digest_authentication.rb +15 -11
  22. data/lib/httpx/plugins/expect.rb +19 -15
  23. data/lib/httpx/plugins/follow_redirects.rb +9 -9
  24. data/lib/httpx/plugins/grpc.rb +72 -46
  25. data/lib/httpx/plugins/grpc/call.rb +4 -1
  26. data/lib/httpx/plugins/ntlm_authentication.rb +8 -6
  27. data/lib/httpx/plugins/proxy.rb +4 -6
  28. data/lib/httpx/plugins/proxy/socks4.rb +2 -1
  29. data/lib/httpx/plugins/proxy/socks5.rb +2 -1
  30. data/lib/httpx/plugins/proxy/ssh.rb +9 -9
  31. data/lib/httpx/plugins/retries.rb +25 -21
  32. data/lib/httpx/plugins/upgrade.rb +7 -6
  33. data/lib/httpx/registry.rb +1 -1
  34. data/lib/httpx/request.rb +4 -12
  35. data/lib/httpx/resolver/https.rb +0 -2
  36. data/lib/httpx/response.rb +45 -18
  37. data/lib/httpx/selector.rb +2 -5
  38. data/lib/httpx/session.rb +19 -8
  39. data/lib/httpx/session2.rb +21 -0
  40. data/lib/httpx/transcoder/body.rb +1 -1
  41. data/lib/httpx/transcoder/chunker.rb +2 -1
  42. data/lib/httpx/version.rb +1 -1
  43. data/sig/buffer.rbs +2 -0
  44. data/sig/chainable.rbs +24 -28
  45. data/sig/connection.rbs +20 -8
  46. data/sig/connection/http1.rbs +3 -3
  47. data/sig/connection/http2.rbs +1 -1
  48. data/sig/errors.rbs +35 -1
  49. data/sig/headers.rbs +5 -5
  50. data/sig/httpx.rbs +4 -1
  51. data/sig/loggable.rbs +3 -1
  52. data/sig/options.rbs +35 -32
  53. data/sig/plugins/authentication.rbs +1 -1
  54. data/sig/plugins/aws_sdk_authentication.rbs +5 -1
  55. data/sig/plugins/aws_sigv4.rbs +1 -2
  56. data/sig/plugins/basic_authentication.rbs +1 -1
  57. data/sig/plugins/compression.rbs +4 -6
  58. data/sig/plugins/cookies.rbs +4 -5
  59. data/sig/plugins/cookies/cookie.rbs +5 -7
  60. data/sig/plugins/cookies/jar.rbs +9 -10
  61. data/sig/plugins/digest_authentication.rbs +2 -3
  62. data/sig/plugins/expect.rbs +2 -4
  63. data/sig/plugins/follow_redirects.rbs +3 -5
  64. data/sig/plugins/grpc.rbs +4 -7
  65. data/sig/plugins/h2c.rbs +0 -2
  66. data/sig/plugins/multipart.rbs +2 -4
  67. data/sig/plugins/ntlm_authentication.rbs +2 -3
  68. data/sig/plugins/persistent.rbs +3 -8
  69. data/sig/plugins/proxy.rbs +7 -7
  70. data/sig/plugins/proxy/ssh.rbs +4 -4
  71. data/sig/plugins/push_promise.rbs +0 -2
  72. data/sig/plugins/retries.rbs +4 -8
  73. data/sig/plugins/stream.rbs +1 -1
  74. data/sig/plugins/upgrade.rbs +2 -3
  75. data/sig/pool.rbs +1 -2
  76. data/sig/registry.rbs +1 -1
  77. data/sig/request.rbs +2 -2
  78. data/sig/resolver.rbs +7 -0
  79. data/sig/resolver/native.rbs +9 -5
  80. data/sig/resolver/resolver_mixin.rbs +4 -5
  81. data/sig/resolver/system.rbs +2 -0
  82. data/sig/response.rbs +17 -11
  83. data/sig/selector.rbs +6 -6
  84. data/sig/session.rbs +19 -14
  85. data/sig/transcoder.rbs +11 -4
  86. data/sig/transcoder/body.rbs +6 -1
  87. data/sig/transcoder/chunker.rbs +8 -2
  88. data/sig/transcoder/form.rbs +2 -1
  89. data/sig/transcoder/json.rbs +1 -0
  90. data/sig/utils.rbs +2 -0
  91. metadata +5 -3
  92. data/lib/httpx/request2.rb +0 -14
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.15.4
4
+ version: 0.16.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-07-14 00:00:00.000000000 Z
11
+ date: 2021-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2-next
@@ -73,6 +73,7 @@ extra_rdoc_files:
73
73
  - doc/release_notes/0_15_2.md
74
74
  - doc/release_notes/0_15_3.md
75
75
  - doc/release_notes/0_15_4.md
76
+ - doc/release_notes/0_16_0.md
76
77
  - doc/release_notes/0_1_0.md
77
78
  - doc/release_notes/0_2_0.md
78
79
  - doc/release_notes/0_2_1.md
@@ -125,6 +126,7 @@ files:
125
126
  - doc/release_notes/0_15_2.md
126
127
  - doc/release_notes/0_15_3.md
127
128
  - doc/release_notes/0_15_4.md
129
+ - doc/release_notes/0_16_0.md
128
130
  - doc/release_notes/0_1_0.md
129
131
  - doc/release_notes/0_2_0.md
130
132
  - doc/release_notes/0_2_1.md
@@ -216,7 +218,6 @@ files:
216
218
  - lib/httpx/punycode.rb
217
219
  - lib/httpx/registry.rb
218
220
  - lib/httpx/request.rb
219
- - lib/httpx/request2.rb
220
221
  - lib/httpx/resolver.rb
221
222
  - lib/httpx/resolver/https.rb
222
223
  - lib/httpx/resolver/native.rb
@@ -225,6 +226,7 @@ files:
225
226
  - lib/httpx/response.rb
226
227
  - lib/httpx/selector.rb
227
228
  - lib/httpx/session.rb
229
+ - lib/httpx/session2.rb
228
230
  - lib/httpx/transcoder.rb
229
231
  - lib/httpx/transcoder/body.rb
230
232
  - lib/httpx/transcoder/chunker.rb
@@ -1,14 +0,0 @@
1
- require_relative "request"
2
- module HTTPX
3
- class Request
4
- def response=(response)
5
- return unless response
6
-
7
- if response.status == 100
8
- @informational_status = response.status
9
- return
10
- end
11
- @response = response
12
- end
13
- end
14
- end