ContentType.parse

Parses the input string into a #GMimeContentType object.

Parameters

options gmime.parser_options.ParserOptions

a #GMimeParserOptions or null

str string

input string containing a content-type (and params)

Return Value

Type: gmime.content_type.ContentType

a new #GMimeContentType object.