Skip to content

Commit

Permalink
Add support for Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Dec 1, 2024
1 parent a3e7a0e commit 8ce026e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion async-http.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "io-stream", "~> 0.6"
spec.add_dependency "protocol-http", "~> 0.43"
spec.add_dependency "protocol-http1", ">= 0.28.1"
spec.add_dependency "protocol-http2", "~> 0.21"
spec.add_dependency "protocol-http2", "~> 0.22"
spec.add_dependency "traces", "~> 0.10"
spec.add_dependency "metrics", "~> 0.12"
end
2 changes: 2 additions & 0 deletions lib/async/http/protocol/http2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def self.trailer?
::Protocol::HTTP2::Settings::ENABLE_PUSH => 0,
::Protocol::HTTP2::Settings::MAXIMUM_FRAME_SIZE => 0x100000,
::Protocol::HTTP2::Settings::INITIAL_WINDOW_SIZE => 0x800000,
::Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES => 1,
}

SERVER_SETTINGS = {
Expand All @@ -35,6 +36,7 @@ def self.trailer?
::Protocol::HTTP2::Settings::MAXIMUM_FRAME_SIZE => 0x100000,
::Protocol::HTTP2::Settings::INITIAL_WINDOW_SIZE => 0x800000,
::Protocol::HTTP2::Settings::ENABLE_CONNECT_PROTOCOL => 1,
::Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES => 1,
}

def self.client(peer, settings = CLIENT_SETTINGS)
Expand Down
4 changes: 4 additions & 0 deletions releases.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Releases

## Unreleased

- Add support for HTTP/2 `NO_RFC7540_PRIORITIES`. See <https://www.rfc-editor.org/rfc/rfc9218.html> for more details.

## v0.84.0

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

0 comments on commit 8ce026e

Please sign in to comment.