Parser for comma-separated token lists with parameters, as used in headers
like Content-Type, Accept, Supported or Event. Port of NkLIB's
nklib_parse_tokens.
iex> Caracola.Tokens.parse("multipart/mixed;boundary=7a9c, text/plain")
{:ok, [{"multipart/mixed", [{"boundary", "7a9c"}]}, {"text/plain", []}]}
Summary
Types
@type token() :: {String.t(), [Caracola.URI.param()]}
A token with its parameters.