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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84a34661bca7f007c6fb80b74101fb59c5689578f5e17076901c976755ceeb50
4
- data.tar.gz: 3ccd85841ed36c4b1d30e6993c5740992db9f8a30c1c1dbbdcdd1fd6197252f4
3
+ metadata.gz: 8e917b21ce0a19c8ebf43041264757a1e880fc53fb80bd2f14837debfbd759e6
4
+ data.tar.gz: de5e2c5a9eedfbd1542c6e4edb78007636214c424574ac46d02869af4a8e6bd1
5
5
  SHA512:
6
- metadata.gz: 2d828bcd131713d846d86d987664fbbd18124363f043efd0824acb974e121703b60f8bb0e2ed4cccd01c7fbbc479c69f63b77bbdf0c498caf4ae609a9795f18d
7
- data.tar.gz: c06921dbbe22ee735fef89fa1999e3e7a181d21d7d30da93529eff7a590b8f163f99b3ac44b01d1cf310e59dbe7ead8f925a49397f1d6aafae0e0cf37eee0787
6
+ metadata.gz: 8c3bbc279a98b45968656445bbfa512652edf2d08550a1a21bf619e84368f0fb26f68bcc406b7c335152c4abe29cf3b8e1f6c500ff7dbf1e84af006be261b464
7
+ data.tar.gz: 14bf4bb97b0a58c977e856896e6c13f8812634cf88b3e03b0e80e4da0b734896256c4fb27ebcfcd4cf0cd11c4c73fe40ba60578e78abcf358a5323feb1271ff5
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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 request.idempotent? and attempt < @retries
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.
@@ -7,6 +7,6 @@
7
7
  module Async
8
8
  # @namespace
9
9
  module HTTP
10
- VERSION = "0.96.0"
10
+ VERSION = "0.98.0"
11
11
  end
12
12
  end
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
- iTgwZmfX"
2
- F���Y%6�|��f��<�fG.��R"-/$a s;�2���� @i���*��V��؅� � ��e3f;[ ]�=
3
- 0F��(�T*^�Q�iI�࿗��n k�'�n�x��OUī��fV��8�� î/��j�&Fd�bn���'u�I�)�!^���TFwY��6;����4��P!G"���<c�����)�7�4
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
+ ��m9l��Y�/�;=�>L�w1a�-$Pu[�`�͒U���Zm��Uv���~�o���$z�F ɯ�����j�n
2
+ B��Dj�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.96.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.62'
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.62'
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