Function IMimeDetector.mimeTypeForData

The preferable mime type for data.

abstract const(char)[] mimeTypeForData (
  const(void)[] data
);

Returns

The name of preferable mime type for given data or null if could not find any match.

Note

Implementer is NOT expected to check if data is textual or not in order to provide text/plain or application/octet-stream fallback. Implementer is NOT expected to clarify mime type by namespace uri itself if it was detected that data is xml.