cherrypy._private_api.compat.headers module¶
HTTP header parsing helpers.
- cherrypy._private_api.compat.headers.parse_header(line)[source]¶
Parse a
Content-Typelike header.Return the main
Content-Typeand a dictionary of options.Copied from removed stdlib
cgimodule. See cherrypy/cherrypy#2014 (comment) for background.