httpheader
httpheader copied to clipboard
Python module for parsing HTTP headers: Accept with qvalues, byte ranges, etc.
It looks like python 3 support was merged with https://github.com/dmeranda/httpheader/pull/8 Please release a new version since Python 2 is depreciated / no longer supported
in Python 3.X print is a function and it has to have parentheses. Installing the module from pip in python3.4 shows ``` ownloading/unpacking httpheader Downloading httpheader-1.1.tar.gz Running setup.py (path:/Users/suff/projects/hht/venv/build/httpheader/setup.py) egg_info...
According to [Section 3.2.3](http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p1-messaging-16.html#field.rules): > Senders SHOULD NOT escape octets in quoted-strings that do not require escaping (i.e., other than DQUOTE and the backslash octet). However, currently quote_string() escapes SEPARATOR...
parse_accept_header returns a list of 3-element tuples, not 4 as is claimed in the docs.
I see that this library is useful for servers, but I miss "range" support for the client, specially the "multipart/byteranges" response.