rbtools.api.utils¶
API-specific MIME type utilities.
Functions
|
Parse a MIME type into its component parts. |
|
Strip the subtype from a mimetype, leaving vendor specific information. |
Classes
A parsed MIME type for resources. |
- class rbtools.api.utils.ParsedMIMEType[source]¶
Bases:
MIMETypeA parsed MIME type for resources.
Added in version 4.0.
- __firstlineno__ = 10¶
- __static_attributes__ = ()¶
- rbtools.api.utils.parse_mimetype(mime_type: str) ParsedMIMEType[source]¶
Parse a MIME type into its component parts.
- Parameters:
mime_type (
str) – The MIME type to parse.- Returns:
The type, parsed into its component parts.
- Return type: