Function MimeDatabase.mimeTypeForData

Get MIME type for given data.

std.typecons.Rebindable!(const(mime.type.MimeType)) mimeTypeForData (
  const(void)[] data
);

Note

This does NOT provide any fallbacks like text/plain, application/octet-stream or application/x-zerosize.

See Also

mimeTypeForFile