httpx 0.7.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +48 -0
- data/README.md +9 -5
- data/doc/release_notes/0_0_1.md +7 -0
- data/doc/release_notes/0_0_2.md +9 -0
- data/doc/release_notes/0_0_3.md +9 -0
- data/doc/release_notes/0_0_4.md +7 -0
- data/doc/release_notes/0_0_5.md +5 -0
- data/doc/release_notes/0_10_0.md +66 -0
- data/doc/release_notes/0_1_0.md +9 -0
- data/doc/release_notes/0_2_0.md +5 -0
- data/doc/release_notes/0_2_1.md +16 -0
- data/doc/release_notes/0_3_0.md +12 -0
- data/doc/release_notes/0_3_1.md +6 -0
- data/doc/release_notes/0_4_0.md +51 -0
- data/doc/release_notes/0_4_1.md +3 -0
- data/doc/release_notes/0_5_0.md +15 -0
- data/doc/release_notes/0_5_1.md +14 -0
- data/doc/release_notes/0_6_0.md +5 -0
- data/doc/release_notes/0_6_1.md +6 -0
- data/doc/release_notes/0_6_2.md +6 -0
- data/doc/release_notes/0_6_3.md +13 -0
- data/doc/release_notes/0_6_4.md +21 -0
- data/doc/release_notes/0_6_5.md +22 -0
- data/doc/release_notes/0_6_6.md +19 -0
- data/doc/release_notes/0_6_7.md +5 -0
- data/doc/release_notes/0_7_0.md +46 -0
- data/doc/release_notes/0_8_0.md +27 -0
- data/doc/release_notes/0_8_1.md +8 -0
- data/doc/release_notes/0_8_2.md +7 -0
- data/doc/release_notes/0_9_0.md +38 -0
- data/lib/httpx.rb +2 -0
- data/lib/httpx/adapters/faraday.rb +1 -1
- data/lib/httpx/altsvc.rb +18 -2
- data/lib/httpx/chainable.rb +9 -8
- data/lib/httpx/connection.rb +177 -72
- data/lib/httpx/connection/http1.rb +44 -13
- data/lib/httpx/connection/http2.rb +77 -34
- data/lib/httpx/domain_name.rb +440 -0
- data/lib/httpx/errors.rb +1 -0
- data/lib/httpx/extensions.rb +23 -3
- data/lib/httpx/headers.rb +2 -2
- data/lib/httpx/io/ssl.rb +11 -4
- data/lib/httpx/io/tcp.rb +16 -5
- data/lib/httpx/io/udp.rb +4 -1
- data/lib/httpx/loggable.rb +6 -6
- data/lib/httpx/options.rb +22 -15
- data/lib/httpx/parser/http1.rb +14 -17
- data/lib/httpx/plugins/compression.rb +49 -64
- data/lib/httpx/plugins/compression/brotli.rb +10 -14
- data/lib/httpx/plugins/compression/deflate.rb +7 -6
- data/lib/httpx/plugins/compression/gzip.rb +45 -17
- data/lib/httpx/plugins/cookies.rb +21 -60
- data/lib/httpx/plugins/cookies/cookie.rb +173 -0
- data/lib/httpx/plugins/cookies/jar.rb +74 -0
- data/lib/httpx/plugins/cookies/set_cookie_parser.rb +142 -0
- data/lib/httpx/plugins/digest_authentication.rb +2 -0
- data/lib/httpx/plugins/expect.rb +12 -1
- data/lib/httpx/plugins/follow_redirects.rb +20 -2
- data/lib/httpx/plugins/h2c.rb +1 -1
- data/lib/httpx/plugins/multipart.rb +0 -8
- data/lib/httpx/plugins/persistent.rb +6 -1
- data/lib/httpx/plugins/proxy.rb +16 -12
- data/lib/httpx/plugins/proxy/http.rb +7 -2
- data/lib/httpx/plugins/proxy/socks4.rb +4 -2
- data/lib/httpx/plugins/proxy/socks5.rb +5 -1
- data/lib/httpx/plugins/push_promise.rb +2 -2
- data/lib/httpx/plugins/rate_limiter.rb +51 -0
- data/lib/httpx/plugins/retries.rb +13 -6
- data/lib/httpx/plugins/stream.rb +109 -13
- data/lib/httpx/pool.rb +13 -15
- data/lib/httpx/registry.rb +2 -1
- data/lib/httpx/request.rb +14 -19
- data/lib/httpx/resolver.rb +7 -8
- data/lib/httpx/resolver/https.rb +22 -5
- data/lib/httpx/resolver/native.rb +27 -33
- data/lib/httpx/resolver/options.rb +2 -2
- data/lib/httpx/resolver/resolver_mixin.rb +1 -1
- data/lib/httpx/response.rb +22 -17
- data/lib/httpx/selector.rb +96 -97
- data/lib/httpx/session.rb +32 -24
- data/lib/httpx/timeout.rb +7 -1
- data/lib/httpx/transcoder/chunker.rb +0 -2
- data/lib/httpx/transcoder/form.rb +0 -6
- data/lib/httpx/transcoder/json.rb +0 -4
- data/lib/httpx/utils.rb +45 -0
- data/lib/httpx/version.rb +1 -1
- data/sig/buffer.rbs +24 -0
- data/sig/callbacks.rbs +14 -0
- data/sig/chainable.rbs +37 -0
- data/sig/connection.rbs +2 -0
- data/sig/connection/http2.rbs +4 -0
- data/sig/domain_name.rbs +17 -0
- data/sig/errors.rbs +3 -0
- data/sig/headers.rbs +42 -0
- data/sig/httpx.rbs +14 -0
- data/sig/loggable.rbs +11 -0
- data/sig/missing.rbs +12 -0
- data/sig/options.rbs +118 -0
- data/sig/parser/http1.rbs +50 -0
- data/sig/plugins/authentication.rbs +11 -0
- data/sig/plugins/basic_authentication.rbs +13 -0
- data/sig/plugins/compression.rbs +55 -0
- data/sig/plugins/compression/brotli.rbs +21 -0
- data/sig/plugins/compression/deflate.rbs +17 -0
- data/sig/plugins/compression/gzip.rbs +29 -0
- data/sig/plugins/cookies.rbs +26 -0
- data/sig/plugins/cookies/cookie.rbs +50 -0
- data/sig/plugins/cookies/jar.rbs +27 -0
- data/sig/plugins/digest_authentication.rbs +33 -0
- data/sig/plugins/expect.rbs +19 -0
- data/sig/plugins/follow_redirects.rbs +37 -0
- data/sig/plugins/h2c.rbs +26 -0
- data/sig/plugins/multipart.rbs +19 -0
- data/sig/plugins/persistent.rbs +17 -0
- data/sig/plugins/proxy.rbs +47 -0
- data/sig/plugins/proxy/http.rbs +14 -0
- data/sig/plugins/proxy/socks4.rbs +33 -0
- data/sig/plugins/proxy/socks5.rbs +36 -0
- data/sig/plugins/proxy/ssh.rbs +18 -0
- data/sig/plugins/push_promise.rbs +22 -0
- data/sig/plugins/rate_limiter.rbs +11 -0
- data/sig/plugins/retries.rbs +48 -0
- data/sig/plugins/stream.rbs +39 -0
- data/sig/pool.rbs +2 -0
- data/sig/registry.rbs +9 -0
- data/sig/request.rbs +61 -0
- data/sig/response.rbs +87 -0
- data/sig/session.rbs +49 -0
- data/sig/test.rbs +9 -0
- data/sig/timeout.rbs +29 -0
- data/sig/transcoder.rbs +16 -0
- data/sig/transcoder/body.rbs +18 -0
- data/sig/transcoder/chunker.rbs +32 -0
- data/sig/transcoder/form.rbs +16 -0
- data/sig/transcoder/json.rbs +14 -0
- metadata +120 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e3727a5374ad3c2d6d7c5dbfd61040e3aa3ea6c74aa6ad12d662a5bd0b9a7af
|
4
|
+
data.tar.gz: 7b1a2aa15418b03fc276b81cfaf0565bbce59dd531c2bfc10f19ddc60506213b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cda3ab9929396bdbad4ff38472dea4d7af34946e34cf995228ad5d52d05e37664b53f66e0a0ac8dd10193e55de52b4f7575f203bea8202b5474f0c3cca450d24
|
7
|
+
data.tar.gz: 025a985fc7c05abbb1bd66d23356d5165f7536d6565464e0729c618da624fc9f428e1046bba7c09dc5d7c23ada0587f73fb23e42128c96847857bcc1ccd6d408
|
data/LICENSE.txt
CHANGED
@@ -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
|
13
|
+
* Simple and chainable API
|
14
14
|
* Proxy Support (HTTP(S), Socks4/4a/5)
|
15
15
|
* Simple Timeout System
|
16
|
-
* Lightweight (
|
16
|
+
* Lightweight by default (require what you need)
|
17
17
|
|
18
|
-
And
|
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
|
-
*
|
28
|
+
* Automatic follow redirects
|
29
|
+
* International Domain Names
|
26
30
|
|
27
31
|
## How
|
28
32
|
|
@@ -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,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,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,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,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,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,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;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# 0.6.5
|
2
|
+
|
3
|
+
This release fixes important bugs, and automates the PKI for the test suite.
|
4
|
+
|
5
|
+
## Features
|
6
|
+
|
7
|
+
* `resolver_options` can now receive a `:cache` flag (default: `true`). This bypasses caching and forces the lookup;
|
8
|
+
|
9
|
+
## Improvements
|
10
|
+
|
11
|
+
* Building the TLS certs necessary for the test suite has been scripted, after the initial certs expired and brought the CI to a halt;
|
12
|
+
* All DNS resolvers have a functional test, both for the happy as well as the error case;
|
13
|
+
* Added functional tests for HTTP and HTTPS proxy with authentication, making all proxy options now tested with authentication;
|
14
|
+
|
15
|
+
|
16
|
+
## Bugfixes
|
17
|
+
|
18
|
+
* native and https DNS resolvers weren't usable after a resolving error;
|
19
|
+
* system DNS resolver could halt the system after a dns resolving error;
|
20
|
+
* fixed system halt on HTTP proxy authentication error;
|
21
|
+
|
22
|
+
|