async-http 0.96.0 → 0.97.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: 2b9936f6d932f814e9a246539842cf10c3499d5acb03d59636b4b4bdf863f7e1
4
+ data.tar.gz: 7d8f3b4eaf4a8921c4a2ed9a106e9e80242f86fc3c67d22567934a4c09c2dc2f
5
5
  SHA512:
6
- metadata.gz: 2d828bcd131713d846d86d987664fbbd18124363f043efd0824acb974e121703b60f8bb0e2ed4cccd01c7fbbc479c69f63b77bbdf0c498caf4ae609a9795f18d
7
- data.tar.gz: c06921dbbe22ee735fef89fa1999e3e7a181d21d7d30da93529eff7a590b8f163f99b3ac44b01d1cf310e59dbe7ead8f925a49397f1d6aafae0e0cf37eee0787
6
+ metadata.gz: 2e4adbf9c8e880e20e85e378ff223d1b6ef9bd383b9c66f6414e83db804fdd05c5c2d07f3c99fbd5563783dff8d5a0276524a93ff400a6372cccb38e8789e094
7
+ data.tar.gz: 5d7cf36f0416d62c3e804955b0b7e3ee1620241d92a62711a27b6843141ef492e588fa52e942fc6fc1145b63a8680db759d63f6b7c6ed2f8e9df7736e48f4948
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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.97.0"
11
11
  end
12
12
  end
data/readme.md CHANGED
@@ -16,6 +16,10 @@ 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.97.0
20
+
21
+ - Exposed all supported protocol names from the plaintext HTTP protocol negotiator.
22
+
19
23
  ### v0.96.0
20
24
 
21
25
  - Made `metrics` and `traces` optional runtime dependencies. Applications that use the providers should depend on the corresponding gem and require the provider explicitly.
@@ -55,10 +59,6 @@ Please see the [project releases](https://socketry.github.io/async-http/releases
55
59
 
56
60
  - Move all default trace providers into `traces/provider/async/http`.
57
61
 
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,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.97.0
4
+
5
+ - Exposed all supported protocol names from the plaintext HTTP protocol negotiator.
6
+
3
7
  ## v0.96.0
4
8
 
5
9
  - 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
Binary file
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.97.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file