async-http 0.96.0 → 0.98.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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/http/client.rb +2 -2
- data/lib/async/http/protocol/http.rb +6 -0
- data/lib/async/http/version.rb +1 -1
- data/readme.md +8 -8
- data/releases.md +8 -0
- data.tar.gz.sig +3 -7
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e917b21ce0a19c8ebf43041264757a1e880fc53fb80bd2f14837debfbd759e6
|
|
4
|
+
data.tar.gz: de5e2c5a9eedfbd1542c6e4edb78007636214c424574ac46d02869af4a8e6bd1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c3bbc279a98b45968656445bbfa512652edf2d08550a1a21bf619e84368f0fb26f68bcc406b7c335152c4abe29cf3b8e1f6c500ff7dbf1e84af006be261b464
|
|
7
|
+
data.tar.gz: 14bf4bb97b0a58c977e856896e6c13f8812634cf88b3e03b0e80e4da0b734896256c4fb27ebcfcd4cf0cd11c4c73fe40ba60578e78abcf358a5323feb1271ff5
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/async/http/client.rb
CHANGED
|
@@ -121,7 +121,7 @@ module Async
|
|
|
121
121
|
connection = nil
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
-
if attempt < @retries
|
|
124
|
+
if attempt < @retries and request.rewind!
|
|
125
125
|
retry
|
|
126
126
|
else
|
|
127
127
|
raise
|
|
@@ -132,7 +132,7 @@ module Async
|
|
|
132
132
|
connection = nil
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
if
|
|
135
|
+
if attempt < @retries and request.retry!
|
|
136
136
|
retry
|
|
137
137
|
else
|
|
138
138
|
raise
|
|
@@ -26,6 +26,12 @@ module Async
|
|
|
26
26
|
@http2 = http2
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
+
# The names of all supported protocols.
|
|
30
|
+
# @returns [Array(String)] The supported protocol names.
|
|
31
|
+
def names
|
|
32
|
+
(@http2.names + @http1.names).uniq
|
|
33
|
+
end
|
|
34
|
+
|
|
29
35
|
# Determine if the inbound connection is HTTP/1 or HTTP/2.
|
|
30
36
|
#
|
|
31
37
|
# @parameter stream [IO::Stream] The stream to detect the protocol for.
|
data/lib/async/http/version.rb
CHANGED
data/readme.md
CHANGED
|
@@ -16,6 +16,14 @@ Please see the [project documentation](https://socketry.github.io/async-http/) f
|
|
|
16
16
|
|
|
17
17
|
Please see the [project releases](https://socketry.github.io/async-http/releases/index) for all releases.
|
|
18
18
|
|
|
19
|
+
### v0.98.0
|
|
20
|
+
|
|
21
|
+
- Rewind request bodies before retrying requests.
|
|
22
|
+
|
|
23
|
+
### v0.97.0
|
|
24
|
+
|
|
25
|
+
- Exposed all supported protocol names from the plaintext HTTP protocol negotiator.
|
|
26
|
+
|
|
19
27
|
### v0.96.0
|
|
20
28
|
|
|
21
29
|
- Made `metrics` and `traces` optional runtime dependencies. Applications that use the providers should depend on the corresponding gem and require the provider explicitly.
|
|
@@ -51,14 +59,6 @@ Please see the [project releases](https://socketry.github.io/async-http/releases
|
|
|
51
59
|
|
|
52
60
|
- **Breaking**: Remove `Async::HTTP::Reference`. Use `Protocol::URL::Reference` directly instead.
|
|
53
61
|
|
|
54
|
-
### v0.91.0
|
|
55
|
-
|
|
56
|
-
- Move all default trace providers into `traces/provider/async/http`.
|
|
57
|
-
|
|
58
|
-
### v0.90.2
|
|
59
|
-
|
|
60
|
-
- Don't emit `resource:` keyword argument in traces - it's unsupported by OpenTelemetry.
|
|
61
|
-
|
|
62
62
|
## See Also
|
|
63
63
|
|
|
64
64
|
- [benchmark-http](https://github.com/socketry/benchmark-http) — A benchmarking tool to report on web server concurrency.
|
data/releases.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Releases
|
|
2
2
|
|
|
3
|
+
## v0.98.0
|
|
4
|
+
|
|
5
|
+
- Rewind request bodies before retrying requests.
|
|
6
|
+
|
|
7
|
+
## v0.97.0
|
|
8
|
+
|
|
9
|
+
- Exposed all supported protocol names from the plaintext HTTP protocol negotiator.
|
|
10
|
+
|
|
3
11
|
## v0.96.0
|
|
4
12
|
|
|
5
13
|
- Made `metrics` and `traces` optional runtime dependencies. Applications that use the providers should depend on the corresponding gem and require the provider explicitly.
|
data.tar.gz.sig
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
_�DtU�F�2
|
|
5
|
-
|
|
6
|
-
��Zdg�UU�8L
|
|
7
|
-
��x䊮7�H�M/=��Gx��O�'!l���D0�x��� ��H�:�ɜ���۠�[kB�O@��!����L��?��eg�re�)��*e��l����P�ɳ,��H.;.������߬Pv����f$����S
|
|
1
|
+
��m�9�l��Y�/�;=�>L�w1a�-$Pu�[�`�͒U���Zm��Uv���~�o���$z�Fɯ�����j�n
|
|
2
|
+
B��D�j�S��.���<�.�l5� �-^8#���e3�s�Ȩ���mK~���=`
|
|
3
|
+
��×�m��Ƚ���%��/-OM�!�)M�
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: async-http
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.98.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -124,14 +124,14 @@ dependencies:
|
|
|
124
124
|
requirements:
|
|
125
125
|
- - "~>"
|
|
126
126
|
- !ruby/object:Gem::Version
|
|
127
|
-
version: '0.
|
|
127
|
+
version: '0.64'
|
|
128
128
|
type: :runtime
|
|
129
129
|
prerelease: false
|
|
130
130
|
version_requirements: !ruby/object:Gem::Requirement
|
|
131
131
|
requirements:
|
|
132
132
|
- - "~>"
|
|
133
133
|
- !ruby/object:Gem::Version
|
|
134
|
-
version: '0.
|
|
134
|
+
version: '0.64'
|
|
135
135
|
- !ruby/object:Gem::Dependency
|
|
136
136
|
name: protocol-http1
|
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
|
Binary file
|