httpx 0.11.3 → 0.12.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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/doc/release_notes/0_11_1.md +5 -1
  4. data/doc/release_notes/0_12_0.md +55 -0
  5. data/lib/httpx.rb +2 -1
  6. data/lib/httpx/adapters/faraday.rb +4 -6
  7. data/lib/httpx/altsvc.rb +1 -0
  8. data/lib/httpx/connection.rb +63 -15
  9. data/lib/httpx/connection/http1.rb +8 -7
  10. data/lib/httpx/connection/http2.rb +32 -25
  11. data/lib/httpx/io.rb +16 -3
  12. data/lib/httpx/io/ssl.rb +7 -9
  13. data/lib/httpx/io/tcp.rb +9 -8
  14. data/lib/httpx/io/tls.rb +218 -0
  15. data/lib/httpx/io/tls/box.rb +365 -0
  16. data/lib/httpx/io/tls/context.rb +199 -0
  17. data/lib/httpx/io/tls/ffi.rb +390 -0
  18. data/lib/httpx/parser/http1.rb +4 -4
  19. data/lib/httpx/plugins/aws_sdk_authentication.rb +81 -0
  20. data/lib/httpx/plugins/aws_sigv4.rb +218 -0
  21. data/lib/httpx/plugins/compression/deflate.rb +2 -5
  22. data/lib/httpx/plugins/internal_telemetry.rb +93 -0
  23. data/lib/httpx/plugins/multipart.rb +2 -0
  24. data/lib/httpx/plugins/multipart/encoder.rb +4 -9
  25. data/lib/httpx/plugins/proxy.rb +1 -1
  26. data/lib/httpx/plugins/proxy/http.rb +1 -1
  27. data/lib/httpx/plugins/proxy/socks4.rb +8 -0
  28. data/lib/httpx/plugins/proxy/socks5.rb +8 -0
  29. data/lib/httpx/plugins/push_promise.rb +3 -2
  30. data/lib/httpx/plugins/retries.rb +1 -1
  31. data/lib/httpx/plugins/stream.rb +3 -5
  32. data/lib/httpx/pool.rb +0 -1
  33. data/lib/httpx/registry.rb +1 -7
  34. data/lib/httpx/request.rb +11 -1
  35. data/lib/httpx/resolver/https.rb +3 -11
  36. data/lib/httpx/response.rb +9 -2
  37. data/lib/httpx/selector.rb +5 -0
  38. data/lib/httpx/session.rb +25 -2
  39. data/lib/httpx/transcoder/body.rb +3 -5
  40. data/lib/httpx/version.rb +1 -1
  41. data/sig/connection/http1.rbs +2 -2
  42. data/sig/connection/http2.rbs +5 -3
  43. data/sig/plugins/aws_sdk_authentication.rbs +17 -0
  44. data/sig/plugins/aws_sigv4.rbs +65 -0
  45. data/sig/plugins/push_promise.rbs +1 -1
  46. metadata +13 -2
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.3
4
+ version: 0.12.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-15 00:00:00.000000000 Z
11
+ date: 2021-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2-next
@@ -58,6 +58,7 @@ extra_rdoc_files:
58
58
  - doc/release_notes/0_11_1.md
59
59
  - doc/release_notes/0_11_2.md
60
60
  - doc/release_notes/0_11_3.md
61
+ - doc/release_notes/0_12_0.md
61
62
  - doc/release_notes/0_1_0.md
62
63
  - doc/release_notes/0_2_0.md
63
64
  - doc/release_notes/0_2_1.md
@@ -95,6 +96,7 @@ files:
95
96
  - doc/release_notes/0_11_1.md
96
97
  - doc/release_notes/0_11_2.md
97
98
  - doc/release_notes/0_11_3.md
99
+ - doc/release_notes/0_12_0.md
98
100
  - doc/release_notes/0_1_0.md
99
101
  - doc/release_notes/0_2_0.md
100
102
  - doc/release_notes/0_2_1.md
@@ -135,12 +137,18 @@ files:
135
137
  - lib/httpx/io.rb
136
138
  - lib/httpx/io/ssl.rb
137
139
  - lib/httpx/io/tcp.rb
140
+ - lib/httpx/io/tls.rb
141
+ - lib/httpx/io/tls/box.rb
142
+ - lib/httpx/io/tls/context.rb
143
+ - lib/httpx/io/tls/ffi.rb
138
144
  - lib/httpx/io/udp.rb
139
145
  - lib/httpx/io/unix.rb
140
146
  - lib/httpx/loggable.rb
141
147
  - lib/httpx/options.rb
142
148
  - lib/httpx/parser/http1.rb
143
149
  - lib/httpx/plugins/authentication.rb
150
+ - lib/httpx/plugins/aws_sdk_authentication.rb
151
+ - lib/httpx/plugins/aws_sigv4.rb
144
152
  - lib/httpx/plugins/basic_authentication.rb
145
153
  - lib/httpx/plugins/compression.rb
146
154
  - lib/httpx/plugins/compression/brotli.rb
@@ -154,6 +162,7 @@ files:
154
162
  - lib/httpx/plugins/expect.rb
155
163
  - lib/httpx/plugins/follow_redirects.rb
156
164
  - lib/httpx/plugins/h2c.rb
165
+ - lib/httpx/plugins/internal_telemetry.rb
157
166
  - lib/httpx/plugins/multipart.rb
158
167
  - lib/httpx/plugins/multipart/encoder.rb
159
168
  - lib/httpx/plugins/multipart/mime_type_detector.rb
@@ -201,6 +210,8 @@ files:
201
210
  - sig/options.rbs
202
211
  - sig/parser/http1.rbs
203
212
  - sig/plugins/authentication.rbs
213
+ - sig/plugins/aws_sdk_authentication.rbs
214
+ - sig/plugins/aws_sigv4.rbs
204
215
  - sig/plugins/basic_authentication.rbs
205
216
  - sig/plugins/compression.rbs
206
217
  - sig/plugins/compression/brotli.rbs