glotchimo / apodo

A cancelled Python web server project.
39 stars 1 forks source link

Headers/headers.py implementation #20

Open mosheduminer opened 5 years ago

mosheduminer commented 5 years ago

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).

Ousret commented 4 years ago

Hi! I've made something that can be of help. https://github.com/Ousret/kiss-headers maybe.