madam.mime module
- class madam.mime.MimeType(mediatype: str | MimeType | None, subtype: str | None = None)[source]
Bases:
objectRepresents a MIME type according to RFC 2045. This class behaves identical to its string representation in
dictandset.Limitations:
Suffixes are considered a part of the subtype
Parameters like
charsetare not supported and will be treated as part of the subtype