Parse lists as described by RFC 2068 Section 2.
In particular, parse comma-separated lists where the elements of the list may include quoted-strings. A quoted-string could contain a comma. A non-quoted string could have quotes in the middle. Quotes are removed automatically after parsing.
It basically works like
parse_set_header()just that items may appear multiple times and case sensitivity is preserved.
The return value is a standard
>>> parse_list_header('token, "quoted value"') ['token', 'quoted value']
To create a header from the
listagain, use the
Parameters: value – a string with a list header. Returns: