No project description provided
Project description
Fast Header
HTTP Header Encoder & Decoder for Python
Install
pip install fast-header
Usage
cache control
from fast_header import CacheControl
cc = CacheControl(max_stale=True)
assert cc.max_stale
assert str(cc) == "max_stable"
cc = CacheControl.parse("max_stable")
etag
from fast_header import ETag
setag = ETag(value="a") # strong etag
wetag = ETag(value="a", weak=True) # weak etag
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fast_header-0.1.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for fast_header-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e92edecc712e471b5550d529b0c1b32de222572499d41b4b643a0b16c7a95f55 |
|
MD5 | 55719ceb6b990fafb78e693cd6564ca8 |
|
BLAKE2b-256 | fa044b859782bcc7b8436ef9f008224f193c092a91e3dd44174162d80c0e19c7 |