Module mime.cache

Class for reading mime.cache files.

Classes

NameDescription
MimeCache Class for reading mime.cache files. Mime cache is mainly optimized for MIME type detection by file name.
MimeCacheException Error occured while parsing mime cache.

Aliases

NameTypeDescription
AliasEntry std.typecons.Tuple!(const(char)[],"aliasName",const(char)[],"mimeType") Alias entry in mime cache.
GlobEntry std.typecons.Tuple!(const(char)[],"glob",const(char)[],"mimeType",ubyte,"weight",bool,"cs") Other glob than literal or suffix glob pattern.
IconEntry std.typecons.Tuple!(const(char)[],"mimeType",const(char)[],"iconName") Icon or generic icon entry in mime cache.
LiteralEntry std.typecons.Tuple!(const(char)[],"literal",const(char)[],"mimeType",ubyte,"weight",bool,"cs") Literal glob
MatchEntry std.typecons.Tuple!(uint,"weight",const(char)[],"mimeType",uint,"matchletCount",uint,"firstMatchletOffset") Magic match entry in mime cache.
MatchletEntry std.typecons.Tuple!(uint,"rangeStart",uint,"rangeLength",uint,"wordSize",uint,"valueLength",const(char)[],"value",const(char)[],"mask",uint,"childrenCount",uint,"firstChildOffset") Magic matchlet entry in mime cache.
MimeTypeAlternative std.typecons.Tuple!(const(char)[],"mimeType",uint,"weight") MIME type alternative found by data.
MimeTypeAlternativeByName std.typecons.Tuple!(const(char)[],"mimeType",uint,"weight",bool,"cs",const(char)[],"pattern") MIME type alternative found by file name.
NamespaceEntry std.typecons.Tuple!(const(char)[],"namespaceUri",const(char)[],"localName",const(char)[],"mimeType") XML namespace entry in mime cache.