Function MediaSubtypeXmlStore.byMimeType
Lazily read MIME types objects. The list of MIME types is read from mime/types file, so it must be present.
std .range .interfaces .InputRange!(const(mime.type.MimeType)) byMimeType();
Returns
Range of MimeType
objects.
Throws
MimeFileException
on mime/types file parsing error.
XMLMimeException
on xml format error.
std.file.FileException on file reading error.
Note
The resulted range may contain duplicates, if some MIME type has multiple definitions across base mime paths. The duplicates in this case refer to the same object, i.e. is-equal.