ContentType.parse

gmime.content_type.ContentType parse(gmime.parser_options.ParserOptions options, string str) static nothrow

Parses the input string into a #GMimeContentType object.

Parameters

optionsa #GMimeParserOptions or null
strinput string containing a content-type (and params)

Returns

a new #GMimeContentType object.