apodo
apodo copied to clipboard
Headers/headers.py implementation
The current (legacy) headers.py module contains the Headers class, which consists of a dictionary implementation and the eval method for parsing headers (from a list of lists, to a dictionary), and the parse_cookies method. It would seem to be preferable to to have header parsing done by a function that will return a dictionary (or alternatively an instance of a class inheriting from dictionary and implementing parse_cookies, otherwise parse_cookies would need to be its own function).
Hi! I've made something that can be of help. https://github.com/Ousret/kiss-headers maybe.