Provides a low-level implementation of the HTTP/2 protocol.
Please see the project documentation for more details.
- Getting Started - This guide explains how to use the
protocol-http2
gem to implement a basic HTTP/2 client.
Please see the project releases for all releases.
- Introduce a limit to the number of CONTINUATION frames that can be read to prevent resource exhaustion. The default limit is 8 continuation frames, which means a total of 9 frames (1 initial + 8 continuation). This limit can be adjusted by passing a different value to the
limit
parameter in theContinued.read
method. Setting the limit to 0 will only read the initial frame without any continuation frames. In order to change the default, you can redefine theLIMIT
constant in theProtocol::HTTP2::Continued
module, OR you can pass a different frame class to the framer.
- Improved tracing performance by only tracing framer operations when in an active trace context.
- Updated
protocol-http
dependency version in gemspec. - Code modernization and documentation improvements.
- Breaking: Removed support for priority frame and stream dependencies. The
Protocol::HTTP2::Stream
class no longer tracks dependencies, andStream#send_headers
no longer takespriority
as the first argument. This change simplifies the internal implementation significantly as HTTP/2 priority frames have been deprecated in the protocol specification.
- Improved performance of dependency management by avoiding linear search operations.
- Removed
traces
as a required dependency - it's now optional and only used when explicitly needed. - Added better documentation for
maximum_concurrent_streams
setting. - Restored 100% test coverage and exposed trace provider for optional tracing support.
- Reduced the number of window update frames sent to improve network efficiency.
- Improved window update frame handling and performance optimizations.
- Better implementation of
Window#inspect
for debugging.
- Added traces to framer for better debugging and monitoring capabilities.
- Minor fixes to logging output.
- Performance improvements for synchronized output handling.
- Extracted
window.rb
into separate module for better organization.
- Removed unused
opened
hook that was never utilized. - Improved ASCII art diagram in documentation.
- Modernized gem structure and dependencies.
- Moved test fixtures into proper namespace organization.
- Async::HTTP - A high-level HTTP client and server implementation.
We welcome contributions to this project.
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin my-new-feature
). - Create new Pull Request.
In order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.