Pure-Python HPACK header encoding
Project description
This module contains a pure-Python HTTP/2 header encoding (HPACK) logic for use in Python programs that implement HTTP/2.
Documentation
Documentation is available at https://hpack.readthedocs.io .
Quickstart:
from hpack import Encoder, Decoder
headers = [
(':method', 'GET'),
(':path', '/jimiscool/'),
('X-Some-Header', 'some_value'),
]
e = Encoder()
encoded_bytes = e.encode(headers)
d = Decoder()
decoded_headers = d.decode(encoded_bytes)
Contributing
hpack 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
hpack is made available under the MIT License. For more details, see the LICENSE file in the repository.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hpack-4.1.0.tar.gz.
File metadata
- Download URL: hpack-4.1.0.tar.gz
- Upload date:
- Size: 51.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec5eca154f7056aa06f196a557655c5b009b382873ac8d1e66e79e87535f1dca
|
|
| MD5 |
16e7423c5b5078c1997fa3eedd2e5935
|
|
| BLAKE2b-256 |
2c4871de9ed269fdae9c8057e5a4c0aa7402e8bb16f2c6e90b3aa53327b113f8
|
File details
Details for the file hpack-4.1.0-py3-none-any.whl.
File metadata
- Download URL: hpack-4.1.0-py3-none-any.whl
- Upload date:
- Size: 34.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
157ac792668d995c657d93111f46b4535ed114f0c9c8d672271bbec7eae1b496
|
|
| MD5 |
fbd10efbd10112bfe63d12ddd74cb250
|
|
| BLAKE2b-256 |
07c680c95b1b2b94682a72cbdbfb85b81ae2daffa4291fbfa1b1464502ede10d
|