gmime.content_type
Module for [ContentType] class
Types 3
A data structure representing a Content-Type.
Methods
ContentTypeGidBuilder builder() static nothrowGet builder for [gmime.content_type.ContentType] Returns: New builder objectgmime.content_type.ContentType parse(gmime.parser_options.ParserOptions options, string str) static nothrowParses the input string into a #GMimeContentType object.string encode(gmime.format_options.FormatOptions options = null) nothrowEncodes the Content-Disposition header.string getMediaSubtype() nothrowGets the Content-Type's media sub-type. Returns: the Content-Type's media sub-type.string getMediaType() nothrowGets the Content-Type's media type. Returns: the Content-Type's media type.string getMimeType() nothrowAllocates a string buffer containing the type and subtype defined by the content_type. Returns: an allocated string containing the type and subtype of the content-type in the format: type/subtype.string getParameter(string name) nothrowGets the parameter value specified by name if it's available.gmime.param_list.ParamList getParameters() nothrowGets the Content-Type's parameter list. Returns: the Content-Type's parameter list.bool isType(string type, string subtype) nothrowCompares the given type and subtype with that of the given mime type object.Fluent builder implementation template for gmime.content_type.ContentType
Fluent builder for gmime.content_type.ContentType
Methods