Declaration [src]

soup_header_parse_param_list (
  const char* header

Description [src]

Parses a header which is a comma-delimited list of something like: token [ "=" ( token | quoted-string ) ].

Tokens that don’t have an associated value will still be added to the resulting hash table, but with a NULL value.

This also handles RFC5987 encoding (which in HTTP is mostly used for giving UTF8-encoded filenames in the Content-Disposition header).


header const char*

A header value.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: GHashTable

A GHashTable of list elements, which can be freed with soup_header_free_param_list().

 The caller of the function takes ownership of the data, and is responsible for freeing it.