MediaSubtypeXmlStore.byMimeType

Lazily read MIME types objects. The list of MIME types is read from mime/types file, so it must be present.

class MediaSubtypeXmlStore
InputRange!(const(MimeType))
byMimeType
()

Return Value

Type: InputRange!(const(MimeType))

Range of mime.type.MimeType objects.

Throws

mime.files.common.MimeFileException on mime/types file parsing error. mime.xml.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.

Meta