Media Type¶
A betty.media_type.MediaType describes a file’s media type,
such as whether it is a JPG image, or a PDF document.
Fields¶
type(str)For example:
textif the media type istext/plain.subtype(str)For example:
lsif the media type isapplication/ld+json.subtypes(iterable ofstr)For example:
['vnd', 'oasis', 'opendocument', 'text']if the media type isapplication/vnd.oasis.opendocument.text.suffix(str)For example:
jsonif the media type isapplication/ld+json.parameters(iterable ofstr)For example:
['charset=UTF-8']if the media type istext/html; charset=UTF-8.