mediatype library
Classes
- Charset
- Charsets
- MediaType
- Represents a document format, identified by a unique RFC 6838 media type.
- SnifferBytesContent
- Used to sniff a bytes array.
- SnifferContent
- Provides an access to a file's content to sniff its format.
- SnifferContext
-
A companion type of
Format.Sniffer
holding the type hints (file extensions, media types) and providing an access to the file content. - SnifferFileContent
- Sniffers
- Default MediaType sniffers provided by Readium.
- SnifferUriContent
- Used to sniff a content URI.
Extensions
Typedefs
-
Sniffer
= Future<
MediaType?> Function(SnifferContext context) - Determines if the provided content matches a known MediaType.