Hpack
Ruby implementation of the HPACK (Header Compression for HTTP/2) standard.
http://http2.github.io/http2-spec/compression.html
Installation
Add this line to your application's Gemfile:
gem 'hpack'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hpack
Usage
require 'hpack'
io_stream = ... something which gives you IO object with data to be processed ...
decoder = Hpack::Decoder.new
decoder.decode io_stream do |header, value, metadata|
...
end
Contributing
- Fork it ( https://github.com/[my-github-username]/hpack/fork )
- 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 a new Pull Request