IMimeDetector.mimeTypeForData

The preferable mime type for data.

interface IMimeDetector
const(char)[]
mimeTypeForData
(
const(void)[] data
)

Return Value

Type: const(char)[]

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.

Meta