MimeDatabase.mimeTypeForFile - multiple declarations
Function MimeDatabase.mimeTypeForFile
Get MIME type for file and its data using methods describing in options.
std .typecons .Rebindable!(const(mime.type.MimeType)) mimeTypeForFile
(
string fileName,
const(void)[] data,
MimeDatabase . Match options = cast(Match)127
);
Parameters
Name | Description |
---|---|
fileName | Name of file |
data | Data chunk read from the file. It's not necessary to read the whole file. |
options | Lookup options |
Function MimeDatabase.mimeTypeForFile
Get MIME type for file using methods describing in options. File contents will be read automatically if needed.
std .typecons .Rebindable!(const(mime.type.MimeType)) mimeTypeForFile
(
string fileName,
MimeDatabase . Match options = cast(Match)127
);