Function
Soupheader_parse_semi_param_list
Declaration [src]
GHashTable*
soup_header_parse_semi_param_list (
const char* header
)
Description [src]
Parses a header which is a semicolon-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).
Parameters
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
|
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |