def parse(elementstr):
        """Transform 'token;key=val' to ('token', {'key': 'val'})."""
        initial_value, params = parse_header(elementstr)
        return initial_value, params
Transform 'token;key=val' to ('token', {'key': 'val'}).
cherrypy/lib/httputil.py