Skip to content

Commit 8ce026e

Browse files
committed
Add support for Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES.
1 parent a3e7a0e commit 8ce026e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

async-http.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
3030
spec.add_dependency "io-stream", "~> 0.6"
3131
spec.add_dependency "protocol-http", "~> 0.43"
3232
spec.add_dependency "protocol-http1", ">= 0.28.1"
33-
spec.add_dependency "protocol-http2", "~> 0.21"
33+
spec.add_dependency "protocol-http2", "~> 0.22"
3434
spec.add_dependency "traces", "~> 0.10"
3535
spec.add_dependency "metrics", "~> 0.12"
3636
end

lib/async/http/protocol/http2.rb

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def self.trailer?
2727
::Protocol::HTTP2::Settings::ENABLE_PUSH => 0,
2828
::Protocol::HTTP2::Settings::MAXIMUM_FRAME_SIZE => 0x100000,
2929
::Protocol::HTTP2::Settings::INITIAL_WINDOW_SIZE => 0x800000,
30+
::Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES => 1,
3031
}
3132

3233
SERVER_SETTINGS = {
@@ -35,6 +36,7 @@ def self.trailer?
3536
::Protocol::HTTP2::Settings::MAXIMUM_FRAME_SIZE => 0x100000,
3637
::Protocol::HTTP2::Settings::INITIAL_WINDOW_SIZE => 0x800000,
3738
::Protocol::HTTP2::Settings::ENABLE_CONNECT_PROTOCOL => 1,
39+
::Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES => 1,
3840
}
3941

4042
def self.client(peer, settings = CLIENT_SETTINGS)

releases.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Releases
22

3+
## Unreleased
4+
5+
- Add support for HTTP/2 `NO_RFC7540_PRIORITIES`. See <https://www.rfc-editor.org/rfc/rfc9218.html> for more details.
6+
37
## v0.84.0
48

59
- Minor consistency fixes to `Async::HTTP::Internet` singleton methods.

0 commit comments

Comments
 (0)