HTTP/2 framing layer for Python
Project description
This library contains the HTTP/2 framing code used in the hyper project. It provides a pure-Python codebase that is capable of decoding a binary stream into HTTP/2 frames.
This library is used directly by hyper and a number of other projects to provide HTTP/2 frame decoding logic.
Contributing
hyperframe welcomes contributions from anyone! Unlike many other projects we are happy to accept cosmetic contributions and small contributions, in addition to large feature requests and changes.
Before you contribute (either by opening an issue or filing a pull request), please read the contribution guidelines.
License
hyperframe is made available under the MIT License. For more details, see the LICENSE file in the repository.
Release History
2.0.0 (2015-09-21)
API Changes
Attempting to parse unrecognised frames now throws ValueError instead of KeyError. Thanks to @Kriechi!
Flags are now validated for correctness, preventing setting flags that hyperframe does not recognise and that would not serialize. Thanks to @mhils!
Frame properties can now be initialized in the constructors. Thanks to @mhils and @Kriechi!
Frames that cannot be sent on a stream now have their stream ID defaulted to 0. Thanks to @Kriechi!
Other Changes
Frames have a more useful repr. Thanks to @mhils!
1.1.1 (2015-07-20)
Fix a bug where FRAME_MAX_LEN was one byte too small.
1.1.0 (2015-06-28)
Add body_len property to frames to enable introspection of the actual frame length. Thanks to @jdecuyper!
1.0.1 (2015-06-27)
Fix bug where the frame header would have an incorrect length added to it.
1.0.0 (2015-04-12)
Initial extraction from hyper.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hyperframe-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8ebb2b89865ad36160a0952bc3f64d043b83cbe636df5b3ce5d5565ef3d3a42 |
|
MD5 | a0c01655e04a7803dbef24ee6a9deb1d |
|
BLAKE2b-256 | c685b3342cd2a009174d46e6f75a38ba27f674eadebcc08852ec9af0908c7598 |