gmime.content_type
Module for [ContentType] class
Types 3
A data structure representing a Content-Type.
Methods
ContentType self()Returns `this`, for use in `with` statements.ContentTypeGidBuilder builder()Get builder for [gmime.content_type.ContentType] Returns: New builder objectgmime.content_type.ContentType parse(gmime.parser_options.ParserOptions options, string str)Parses the input string into a #GMimeContentType object.string encode(gmime.format_options.FormatOptions options = null)Encodes the Content-Disposition header.string getMediaSubtype()Gets the Content-Type's media sub-type. Returns: the Content-Type's media sub-type.string getMediaType()Gets the Content-Type's media type. Returns: the Content-Type's media type.string getMimeType()Allocates 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)Gets the parameter value specified by name if it's available.gmime.param_list.ParamList getParameters()Gets the Content-Type's parameter list. Returns: the Content-Type's parameter list.bool isType(string type, string subtype)Compares the given type and subtype with that of the given mime type object.void setMediaSubtype(string subtype)Sets the Content-Type's media subtype.void setMediaType(string type)Sets the Content-Type's media type.void setParameter(string name, string value)Sets a parameter on the Content-Type.Fluent builder for [gmime.content_type.ContentType]
Methods