httpx 0.8.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +48 -0
  3. data/README.md +9 -5
  4. data/doc/release_notes/0_0_1.md +7 -0
  5. data/doc/release_notes/0_0_2.md +9 -0
  6. data/doc/release_notes/0_0_3.md +9 -0
  7. data/doc/release_notes/0_0_4.md +7 -0
  8. data/doc/release_notes/0_0_5.md +5 -0
  9. data/doc/release_notes/0_10_0.md +66 -0
  10. data/doc/release_notes/0_10_1.md +39 -0
  11. data/doc/release_notes/0_1_0.md +9 -0
  12. data/doc/release_notes/0_2_0.md +5 -0
  13. data/doc/release_notes/0_2_1.md +16 -0
  14. data/doc/release_notes/0_3_0.md +12 -0
  15. data/doc/release_notes/0_3_1.md +6 -0
  16. data/doc/release_notes/0_4_0.md +51 -0
  17. data/doc/release_notes/0_4_1.md +3 -0
  18. data/doc/release_notes/0_5_0.md +15 -0
  19. data/doc/release_notes/0_5_1.md +14 -0
  20. data/doc/release_notes/0_6_0.md +5 -0
  21. data/doc/release_notes/0_6_1.md +6 -0
  22. data/doc/release_notes/0_6_2.md +6 -0
  23. data/doc/release_notes/0_6_3.md +13 -0
  24. data/doc/release_notes/0_6_4.md +21 -0
  25. data/doc/release_notes/0_6_5.md +22 -0
  26. data/doc/release_notes/0_6_6.md +19 -0
  27. data/doc/release_notes/0_6_7.md +5 -0
  28. data/doc/release_notes/0_7_0.md +46 -0
  29. data/doc/release_notes/0_8_0.md +27 -0
  30. data/doc/release_notes/0_8_1.md +8 -0
  31. data/doc/release_notes/0_8_2.md +7 -0
  32. data/doc/release_notes/0_9_0.md +38 -0
  33. data/lib/httpx.rb +2 -0
  34. data/lib/httpx/adapters/faraday.rb +1 -1
  35. data/lib/httpx/chainable.rb +11 -11
  36. data/lib/httpx/connection.rb +23 -31
  37. data/lib/httpx/connection/http1.rb +30 -4
  38. data/lib/httpx/connection/http2.rb +29 -10
  39. data/lib/httpx/domain_name.rb +440 -0
  40. data/lib/httpx/errors.rb +2 -1
  41. data/lib/httpx/extensions.rb +22 -2
  42. data/lib/httpx/headers.rb +2 -2
  43. data/lib/httpx/io/ssl.rb +0 -1
  44. data/lib/httpx/io/tcp.rb +6 -5
  45. data/lib/httpx/io/udp.rb +4 -1
  46. data/lib/httpx/options.rb +5 -1
  47. data/lib/httpx/parser/http1.rb +14 -17
  48. data/lib/httpx/plugins/compression.rb +46 -65
  49. data/lib/httpx/plugins/compression/brotli.rb +10 -14
  50. data/lib/httpx/plugins/compression/deflate.rb +7 -6
  51. data/lib/httpx/plugins/compression/gzip.rb +23 -5
  52. data/lib/httpx/plugins/cookies.rb +21 -60
  53. data/lib/httpx/plugins/cookies/cookie.rb +173 -0
  54. data/lib/httpx/plugins/cookies/jar.rb +74 -0
  55. data/lib/httpx/plugins/cookies/set_cookie_parser.rb +142 -0
  56. data/lib/httpx/plugins/expect.rb +12 -1
  57. data/lib/httpx/plugins/follow_redirects.rb +20 -2
  58. data/lib/httpx/plugins/h2c.rb +1 -1
  59. data/lib/httpx/plugins/multipart.rb +12 -6
  60. data/lib/httpx/plugins/persistent.rb +6 -1
  61. data/lib/httpx/plugins/proxy.rb +16 -2
  62. data/lib/httpx/plugins/proxy/socks4.rb +14 -14
  63. data/lib/httpx/plugins/rate_limiter.rb +51 -0
  64. data/lib/httpx/plugins/retries.rb +3 -2
  65. data/lib/httpx/plugins/stream.rb +109 -13
  66. data/lib/httpx/pool.rb +14 -17
  67. data/lib/httpx/request.rb +8 -20
  68. data/lib/httpx/resolver.rb +7 -10
  69. data/lib/httpx/resolver/https.rb +22 -24
  70. data/lib/httpx/resolver/native.rb +19 -16
  71. data/lib/httpx/resolver/resolver_mixin.rb +4 -2
  72. data/lib/httpx/resolver/system.rb +2 -2
  73. data/lib/httpx/response.rb +16 -25
  74. data/lib/httpx/selector.rb +11 -18
  75. data/lib/httpx/session.rb +40 -26
  76. data/lib/httpx/transcoder.rb +18 -0
  77. data/lib/httpx/transcoder/chunker.rb +0 -2
  78. data/lib/httpx/transcoder/form.rb +9 -7
  79. data/lib/httpx/transcoder/json.rb +0 -4
  80. data/lib/httpx/utils.rb +45 -0
  81. data/lib/httpx/version.rb +1 -1
  82. data/sig/buffer.rbs +24 -0
  83. data/sig/callbacks.rbs +14 -0
  84. data/sig/chainable.rbs +37 -0
  85. data/sig/connection.rbs +85 -0
  86. data/sig/connection/http1.rbs +66 -0
  87. data/sig/connection/http2.rbs +78 -0
  88. data/sig/domain_name.rbs +17 -0
  89. data/sig/errors.rbs +3 -0
  90. data/sig/headers.rbs +42 -0
  91. data/sig/httpx.rbs +15 -0
  92. data/sig/loggable.rbs +11 -0
  93. data/sig/missing.rbs +12 -0
  94. data/sig/options.rbs +118 -0
  95. data/sig/parser/http1.rbs +50 -0
  96. data/sig/plugins/authentication.rbs +11 -0
  97. data/sig/plugins/basic_authentication.rbs +13 -0
  98. data/sig/plugins/compression.rbs +55 -0
  99. data/sig/plugins/compression/brotli.rbs +21 -0
  100. data/sig/plugins/compression/deflate.rbs +17 -0
  101. data/sig/plugins/compression/gzip.rbs +29 -0
  102. data/sig/plugins/cookies.rbs +26 -0
  103. data/sig/plugins/cookies/cookie.rbs +50 -0
  104. data/sig/plugins/cookies/jar.rbs +27 -0
  105. data/sig/plugins/digest_authentication.rbs +33 -0
  106. data/sig/plugins/expect.rbs +19 -0
  107. data/sig/plugins/follow_redirects.rbs +37 -0
  108. data/sig/plugins/h2c.rbs +26 -0
  109. data/sig/plugins/multipart.rbs +21 -0
  110. data/sig/plugins/persistent.rbs +17 -0
  111. data/sig/plugins/proxy.rbs +47 -0
  112. data/sig/plugins/proxy/http.rbs +14 -0
  113. data/sig/plugins/proxy/socks4.rbs +33 -0
  114. data/sig/plugins/proxy/socks5.rbs +36 -0
  115. data/sig/plugins/proxy/ssh.rbs +18 -0
  116. data/sig/plugins/push_promise.rbs +22 -0
  117. data/sig/plugins/rate_limiter.rbs +11 -0
  118. data/sig/plugins/retries.rbs +48 -0
  119. data/sig/plugins/stream.rbs +39 -0
  120. data/sig/pool.rbs +36 -0
  121. data/sig/registry.rbs +9 -0
  122. data/sig/request.rbs +61 -0
  123. data/sig/resolver.rbs +26 -0
  124. data/sig/resolver/https.rbs +49 -0
  125. data/sig/resolver/native.rbs +60 -0
  126. data/sig/resolver/resolver_mixin.rbs +27 -0
  127. data/sig/resolver/system.rbs +17 -0
  128. data/sig/response.rbs +87 -0
  129. data/sig/selector.rbs +20 -0
  130. data/sig/session.rbs +49 -0
  131. data/sig/timeout.rbs +29 -0
  132. data/sig/transcoder.rbs +18 -0
  133. data/sig/transcoder/body.rbs +18 -0
  134. data/sig/transcoder/chunker.rbs +32 -0
  135. data/sig/transcoder/form.rbs +16 -0
  136. data/sig/transcoder/json.rbs +14 -0
  137. metadata +128 -22
  138. data/lib/httpx/resolver/options.rb +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ac832ee93155b950d27dde3d7295fae2b817a8b2c55c881ec07f73e97736c59
4
- data.tar.gz: 28251067c648230eed4435b9df7cf75bfc1c552162f37928a8ee6c5b485d6c3b
3
+ metadata.gz: ed5ebccf22cf5c4719a81db15ee29a7d05e08fa43bd83b14c3b2682c083615be
4
+ data.tar.gz: 2befada7d0c17d0c20d0afce44fc0a9d3192ffb2bb311322ee171107d285d050
5
5
  SHA512:
6
- metadata.gz: d7b9f1419af3bb823ff58de80dca6a933bf25a756e27ff35f76c5ad7948ad1aab1c1f63f8eaf20bc9fc05bb0b2ed4932fd5ff1e33bcd7a8cda061bee2c54e4ac
7
- data.tar.gz: f410653e0e1646f36eeaf90746bfae17d8c344abdf44eb92df2a992897d24843d16e370ec54f6441bedfe779981d17e4b9c5316f73115adc77e0639cb8dba53f
6
+ metadata.gz: 9abffdd09d11f8c22c51f38064525d6d5250fe1e72a2e369f79c98e7d02ee6fe7a7442ac76758bf60cbc87eabe51a3faa30a675f4a30cb83a01e09aa98334d0a
7
+ data.tar.gz: 9c0706ac930dc0e082845795784a5007d0cd9bb25f4a81435be6d8e081ba29528a0df05fc03713dc07615329944ca586e4df8386766c6b5ff440c96d90dc472e
@@ -189,3 +189,51 @@
189
189
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
190
  See the License for the specific language governing permissions and
191
191
  limitations under the License.
192
+
193
+
194
+ * lib/httpx/domain_name.rb
195
+
196
+ This file is derived from the implementation of punycode available at
197
+ here:
198
+
199
+ https://www.verisign.com/en_US/channel-resources/domain-registry-products/idn-sdks/index.xhtml
200
+
201
+ Copyright (C) 2000-2002 Verisign Inc., All rights reserved.
202
+
203
+ Redistribution and use in source and binary forms, with or
204
+ without modification, are permitted provided that the following
205
+ conditions are met:
206
+
207
+ 1) Redistributions of source code must retain the above copyright
208
+ notice, this list of conditions and the following disclaimer.
209
+
210
+ 2) Redistributions in binary form must reproduce the above copyright
211
+ notice, this list of conditions and the following disclaimer in
212
+ the documentation and/or other materials provided with the
213
+ distribution.
214
+
215
+ 3) Neither the name of the VeriSign Inc. nor the names of its
216
+ contributors may be used to endorse or promote products derived
217
+ from this software without specific prior written permission.
218
+
219
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
220
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
221
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
222
+ FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
223
+ COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
224
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
225
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
226
+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
227
+ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
228
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
229
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
230
+ POSSIBILITY OF SUCH DAMAGE.
231
+
232
+ This software is licensed under the BSD open source license. For more
233
+ information visit www.opensource.org.
234
+
235
+ Authors:
236
+ John Colosi (VeriSign)
237
+ Srikanth Veeramachaneni (VeriSign)
238
+ Nagesh Chigurupati (Verisign)
239
+ Praveen Srinivasan(Verisign)
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/httpx.svg)](http://rubygems.org/gems/httpx)
4
4
  [![pipeline status](https://gitlab.com/honeyryderchuck/httpx/badges/master/pipeline.svg)](https://gitlab.com/honeyryderchuck/httpx/commits/master)
5
- [![coverage report](https://gitlab.com/honeyryderchuck/httpx/badges/master/coverage.svg)](https://honeyryderchuck.gitlab.io/httpx/coverage/#_AllFiles)
5
+ [![coverage report](https://gitlab.com/honeyryderchuck/httpx/badges/master/coverage.svg?job=coverage)](https://honeyryderchuck.gitlab.io/httpx/coverage/#_AllFiles)
6
6
 
7
7
  HTTPX is an HTTP client library for the Ruby programming language.
8
8
 
@@ -10,19 +10,23 @@ Among its features, it supports:
10
10
 
11
11
  * HTTP/2 and HTTP/1.x protocol versions
12
12
  * Concurrent requests by default
13
- * Simple and chainable API (based on HTTP.rb, itself based on Python Requests)
13
+ * Simple and chainable API
14
14
  * Proxy Support (HTTP(S), Socks4/4a/5)
15
15
  * Simple Timeout System
16
- * Lightweight (explicit feature loading)
16
+ * Lightweight by default (require what you need)
17
17
 
18
- And among others
18
+ And also:
19
19
 
20
20
  * Compression (gzip, deflate, brotli)
21
+ * Streaming Requests
21
22
  * Authentication (Basic Auth, Digest Auth)
23
+ * Expect 100-continue
24
+ * Multipart Requests
22
25
  * Cookies
23
26
  * HTTP/2 Server Push
24
27
  * H2C Upgrade
25
- * Redirect following
28
+ * Automatic follow redirects
29
+ * International Domain Names
26
30
 
27
31
  ## How
28
32
 
@@ -0,0 +1,7 @@
1
+ # Genesis Release
2
+
3
+ This is the first release of `httpx`.
4
+
5
+ It accomplishes all the API and feature goals necessary to its first use, which is testing server implementations.
6
+
7
+ From here on, the sky is the limit.
@@ -0,0 +1,9 @@
1
+ # 0.0.2
2
+
3
+ * Hot-Fixed a flaw from the first version which was breaking https calls (SNI was broken).
4
+
5
+ * Added a few test hackernews scraping scripts, which will be used for trouble-shooting/benchmarking.
6
+
7
+ * Refactored/Fixed closing connections (HTTP/2 connections were buffering but not sending the GOAWAY frame)
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # 0.0.3
2
+
3
+ * Added `HTTPX::Response#raise_for_status`. If there was an error response, it will raise it's exception. If the HTTP response has a 4xx or 5xx error, it will raise an `HTTPX::HTTPError` exception (this feature was inspired by a similar feature in python requests library).
4
+
5
+ * Added `HTTPX::Client#wrap`, which allows to use the client inside a block and keep connections open, without resorting to the initializer only.
6
+
7
+ * TCP connection establishment errors are now wrapped in error responses, like other possible errors.
8
+
9
+ * SSL non-blocking connection API is now in use (it was previously using the blocking connect API, and was breaking the hackernews script from time to time. Now I'm looking at you, DNS).
@@ -0,0 +1,7 @@
1
+ # 0.0.4
2
+
3
+ * Added ANSI coloring to the debugging output (when in TTY mode).
4
+
5
+ * `HTTPX::HTTPError` exceptions now carry the full response object, instead of just the status (so the user can inspect the body and headers if it so desires).
6
+
7
+ * Fixed a bug related with HTTP/1 multiple requests on a domain which closed connections not being able to open a new socket to the domain.
@@ -0,0 +1,5 @@
1
+ # 0.0.5
2
+
3
+ * Fixed HTTP/1 pipelining (it's working again).
4
+
5
+ * Fixed multiple requests to the same domain over https (SSL sockets weren't being properly reopened).
@@ -0,0 +1,66 @@
1
+ # 0.10.0
2
+
3
+ ## Features
4
+
5
+ ### Streaming Requests
6
+
7
+ The `stream` plugin adds functionality to handle long-lived stream responses, such as the Twitter Streaming API:
8
+
9
+ ```ruby
10
+ http = HTTPX.plugin(:stream)
11
+
12
+ http.get(stream_api_endpoint, stream: true).each_line do |line|
13
+ payload = JSON.parse(line)
14
+ # do smth with this
15
+ end
16
+ ```
17
+
18
+ https://gitlab.com/honeyryderchuck/httpx/-/wikis/Stream
19
+
20
+ ### Rate Limiter
21
+
22
+ The `rate_limiter` plugin adds functionality for automatically hooking into rate-limiting responses coming from the server, and waits-and-retries them according to what the server advertises.
23
+
24
+ ```ruby
25
+ HTTPX.plugin(:rate_limiter).get(rate_limited_api_endpoint)
26
+ # => 429 Too Many Requests .... Retry-After: 3
27
+ # waits 3 seconds before retrying
28
+ ```
29
+
30
+ https://gitlab.com/honeyryderchuck/httpx/-/wikis/Rate-Limiter
31
+
32
+ ### Ruby 3
33
+
34
+ This release is the first testing against and targeting Ruby 3 and some of the new features.
35
+
36
+ It ships with RBS signatures for all of the client-facing APIs. There's non 100% typinng coverage yet, but I'm gradually (pun intended) working on it.
37
+
38
+
39
+ ## Improvements
40
+
41
+ ### IDN support
42
+
43
+ Requests where the domains are formed by non-ASCII characters, are now supported (if you're using ruby 2.3 or more recent).
44
+
45
+ ```ruby
46
+ HTTPX.get("http://bücher.ch") # it works!
47
+ ```
48
+
49
+ ### cookies plugin full implementation
50
+
51
+
52
+ The `cookies` plugin is now independent of 3rd-party gems. The motivation for this was that `http-cookie` was dependent of both `domain_name` and `unf` gems, which are currently unusable in ruby 3, and haven't received any update in the last 3 years.
53
+
54
+ The implementation is still compliant with RFC6265, and all of the features provided in earlier versions were ported, exceptwhen loading the cookie jar stored in a Netscape-format file or Mozilla sqlite database, which were not documented for `httpx` anyway, and I considered too niche to backport. If you feel `httpx` should support those, do let me know.
55
+
56
+ Some code from these gems, including the ruby punycode implementation, is now part of the source tree, along with its licenses and attribution mentions.
57
+
58
+ ## Bugfixes
59
+
60
+
61
+ Several edge-case bugs have been fixed solely by the integration of RBS runtime type checking, including some bugs around closing a connection pool that can cause loops.
62
+
63
+
64
+ ## Regressions
65
+
66
+ `HTTPX::ErrorResponse`'s methods `#headers` and `#reason` were removed, as they didn't provide much value. Consider calling `#raise_for_status` or checking the API (`is_a?(HTTPX::ErrorResponse)` or `respond_to?(:error)` are strategies for this).
@@ -0,0 +1,39 @@
1
+ # 0.10.1
2
+
3
+ ## Improvements
4
+
5
+ ### URL-encoded nested params
6
+
7
+ url encoder now supports nested params, which is a standard of rack-based frameworks:
8
+
9
+ ```ruby
10
+ HTTPX.post("https://httpbin.org/post", form: { a: { b: 1 }, c: [2, 3] })
11
+ # a[b]=1&c[]=2&c[]=3
12
+ ```
13
+
14
+ This encoding scheme is now the standard for URL-encoded request bodies, query params, and `:multipart` plugin requests.
15
+
16
+ ### Socks4 IPv6 addresses
17
+
18
+ HTTPX supports IPv6 Socks4 proxies now. This support is restricted to rubies where `IPAddr#hton` is implemented though, so you are encouraged to upgrade.
19
+
20
+ ## More verbose HTTP Errors
21
+
22
+ `HTTPX::Response#raise_for_status` was raising exceptions for client/server HTTP errors codes (4xx/5xx). However, only the status code was part of the message.
23
+
24
+ From now on, both headers and the responnse payload will also appear, so expected more verbosity, but also more meaningful information.
25
+
26
+ ## Bugfixes
27
+
28
+ * HTTP/2 and HTTP/1.1 exhausted connections now get properly migrated into a new connection;
29
+ * HTTP/2 421 responses will now correctly migrate the connection and pendign requests to HTTP/1.1 (a hanging loop was being caused);
30
+ * HTTP/2 connection failed with a GOAWAY settings timeout will now return error responses (instead of hanging indefinitely);
31
+ * Non-IP proxy name-resolving errors will now move on to the next available proxy in the list (instead of hanging indefinitely);
32
+ * Non-IP DNS resolve errors for `native` and `https` variannts will now return the appropriate error response (instead of hanging indefinitely);
33
+ *
34
+
35
+
36
+ ## Chore
37
+
38
+ * `HTTPX.plugins` is now officially deprecated (use `HTTPX.plugin` instead);
39
+
@@ -0,0 +1,9 @@
1
+ # 0.1.0
2
+
3
+ * Follow Redirects Plugin: Added `:follow_insecure_redirects` option, which will not follow https-to-http redirects.
4
+
5
+ * Allow optional option `:transport`. TCP sockets are the default tranport, but by passing `:unix`, one can also define it as a UNIX socket.
6
+
7
+ * Added Retries Plugin, which will retry a request a certain amount of times, provided that the request is safe.
8
+
9
+ * Proxy Plugin: allow multiple proxies to be passed. The client will perform requests on the first proxy successfully connected.
@@ -0,0 +1,5 @@
1
+ # 0.2.0
2
+
3
+ * Custom Resolvers: Non-blocking DNS Resolver, DNS-over-HTTPS Resolver
4
+
5
+ * HTTP/2 connection coalescing
@@ -0,0 +1,16 @@
1
+ # 0.2.1
2
+
3
+ * fixed setting timeouts using the chainable API
4
+
5
+ * Basic Auth: proper user/password escaping
6
+
7
+ * Improved multi-request support, by allowing to pass request-specific options for multiple requests
8
+
9
+ ```ruby
10
+ tokens = ["TOKEN1", "TOKEN2", "TOKEN3"]
11
+ uri = "https://example.com/protected"
12
+
13
+ requests = tokens.map { |token| [uri, {headers: {'authorization': token} }] }
14
+
15
+ responses = HTTPX.get(*requests)
16
+ ```
@@ -0,0 +1,12 @@
1
+ # 0.3.0
2
+
3
+ * removed `http_parser.rb`, which is unmaintained, builds an old version of node's parser, and doesn't work on JRuby 9.2; also, better support over HTTP/1 features.
4
+
5
+ * Alt-Svc support (all remaining origin requests will be routed there); Supports both `Alt-Svc` header and the `altsvc` HTTP/2 frame.
6
+
7
+ * moved multipart requests support to a separate plugin, which removed `http_form_data` as a hard dependency (you'll still need it for the plugin though).
8
+
9
+ * new `HTTP.wrap { |client| }` method.
10
+
11
+ * We have a cheatsheet! 
12
+
@@ -0,0 +1,6 @@
1
+ # 0.3.1
2
+
3
+ * improved DNS resolution error handling (decoding/encoding errors, system resolver)
4
+
5
+ * hotfix: Native/HTTPS resolver not retrying same record type after cache expired, effectively not working after some time for long-running processes
6
+
@@ -0,0 +1,51 @@
1
+ # 0.4.0
2
+
3
+ * Feature: SSH proxy plugin -> send requests over ssh gateway;
4
+
5
+ ```ruby
6
+ HTTPX.plugin(:"proxy/ssh").
7
+ with_proxy(uri: "ssh://localhost:2222",
8
+ username: "root",
9
+ auth_methods: %w[publickey],
10
+ host_key: "ssh-rsa",
11
+ keys: %w[test/support/ssh/ssh_host_ed25519_key]).get(URI)
12
+ ```
13
+
14
+ * Feature: Faraday Adapter
15
+
16
+ * refactoring: cookies plugin API simplification (this is a breaking change!):
17
+
18
+ ```ruby
19
+ session = HTTPX.plugin(:cookies)
20
+ session.with_cookies("a" => "b").get(...
21
+ session.cookies #=> session current cookie store, persists/updates session cookies as requests are processed
22
+ session.wrap do |session|
23
+ session.get(..) #=> "Set-Cookie"
24
+ ...
25
+ end #=> after this, cookie store resets to the state previous to wrap
26
+ ```
27
+
28
+ Removed `Session#cookie_store`
29
+
30
+ ```ruby
31
+ client = HTTPX.plugin(:cookies)
32
+ redirect_response = client.get(URI) #=> ... 302 ... Set-Cookie: "blablalba" ...
33
+ # this sets the cookies
34
+ # GET .... Cookie: "blablabla" ....
35
+ response = client.get(URI) #=> ... 200 ...
36
+ # also, setting cookies:
37
+
38
+ client.cookies("a" => "b").get(URI) # ... Cookie: "a=b" ...
39
+
40
+ #also seamlessly integrates with redirect follows
41
+ client = HTTPX.plugins(:follow_redirects, :cookies)
42
+ response = client.get(URI) #=> ... 200 ...
43
+ ```
44
+
45
+ * refactoring: connection pool now thread-local, improves thread-safety;
46
+
47
+ * bugfix: leaking dns query when passing IO object as option;
48
+
49
+ * bugfix: now multiple different resolvers are supported;
50
+
51
+ * support: JRuby is again supported (as usual, only latest stable is guaranteed)
@@ -0,0 +1,3 @@
1
+ # 0.4.1
2
+
3
+ This was a fix release for some issues around exceptions on requests, and to make the faraday adapter work well with ssl.
@@ -0,0 +1,15 @@
1
+ # 0.5.0
2
+
3
+ This release is a minor bump only because it introduces a new dependency:
4
+
5
+ ## the `timers` gem
6
+
7
+ We've introduced the [`timers` gem](https://github.com/socketry/timers) as a dependency to deal with total timeouts, thereby making the timeout object only a container of values to be refactored. This was in itself a small gain for such a big addition, but other future time-based features can be best built upon it than the existing work.
8
+
9
+
10
+ ## Bugfixes
11
+
12
+ * the altsvc header wasn't properly parsed, and was breaking requests to google. Don't break requests to google!
13
+ * Added support for faraday 0.16;
14
+ * Made the IO selector less flaky;
15
+ * Fixed the homepage, which was being displayed without styles;
@@ -0,0 +1,14 @@
1
+ # 0.5.1
2
+
3
+ ## Improvements
4
+
5
+ * Fixed flakiness of test suite introduced in the 0.4 versions;
6
+ * compression plugin:
7
+ * do not send `accept-encoding` header when `range` is present;
8
+ * Remove from `content-encoding` if body stream decodes it;
9
+ * Added `HTTPX::Response::Body#encodings` to return the decoded encoding(s);
10
+
11
+ ## Bugfixes
12
+
13
+ * non-UTF-8 bodies weren't being properly handled, which led to a loop report (`slice` -> `byteslice`);
14
+ * connection reuse now also happens for requests with body (it was only working with `GET`s and other bodyless requests before);
@@ -0,0 +1,5 @@
1
+ # 0.6.0
2
+
3
+ ## Improvements
4
+
5
+ * Switches `http-2` gem with `http-2-next`, a fork with a focus on spec compliance.
@@ -0,0 +1,6 @@
1
+ # 0.6.1
2
+
3
+ ## Bugfixes
4
+
5
+ * If an http2 connection error happened before streams were open, errors weren't propagated, and there was an infinite loop.
6
+ * Bumping `http-2-next`, fixes the flow control issue causing requests to cloudfront to fail.
@@ -0,0 +1,6 @@
1
+ # 0.6.2
2
+
3
+ ## Bugfixes
4
+
5
+ * Remove escaping of request uri;
6
+ * strip header value (if value have newline, for example);
@@ -0,0 +1,13 @@
1
+ # 0.6.3
2
+
3
+ ## Improvements
4
+
5
+ * HTTP/2 `ORIGIN` frame support (https://tools.ietf.org/html/draft-ietf-httpbis-origin-frame-06);
6
+ * Added functional tests for HTTP/2 connection coalescing (and fixed it, as it hasn't been working for a while);
7
+ * Added functional tests for `Alt-Svc` header support;
8
+
9
+ ## Bugfixes
10
+
11
+ * fixing alternative service redirection if `alt-svc` header pointed to the current peer;
12
+ * fixing `alt-svc` support when ruby version does not support ALPN negotation;
13
+
@@ -0,0 +1,21 @@
1
+ # 0.6.4
2
+
3
+ This release takes where the last left off, and makes a concerted effort to improve both the test coverage and the number of features for which there are functional tests.
4
+
5
+ ## Improvements
6
+
7
+ * Running Ruby 2.7 with no warnings;
8
+
9
+ * Test suite now has functional tests for:
10
+ * authentication on proxies (http, socks4a, socks5);
11
+ * DNS-over-HTTPS;
12
+ * connect timeouts (still a bit flaky though);
13
+
14
+ * Improved test coverage of project to 90%;
15
+
16
+ * building website/blog with Jekyll 4;
17
+
18
+ ## Bugfixes
19
+
20
+ * fixed regressions on HTTP, SOCKS4a and SOCKS5 proxy authentication;
21
+ * fixed DNS-over-HTTPS implementation to be compliant with the latest RFC;