Function MediaSubtypeXmlStore.mimeType

Find and parse MEDIA/SUBTYPE.xml file(s) for given MIME type name. If it finds more then one file for the MIME type, merging operation is performed.

std.typecons.Rebindable!(const(mime.type.MimeType)) mimeType (
  const(char[]) name
);

Returns

MimeType object parsed from found xml file(s) or null if no file was found or name is invalid.

Throws

XMLMimeException on format error or std.file.FileException on file reading error.

See Also

mergeMimeTypes