codec.mimetypes - Palamecia/mint GitHub Wiki
Module
load codec.mimetypes
This module provides tools to handle data mime type and encoding. It provides the Codec.MimeTypes class which manage mime types.
Packages
Classes
Codec.MimeTypes
This class manage the mime types database. It allow to find a mime type and retrieve informations about it.
Public members
Modifiers | Member | Description |
---|---|---|
@ const |
fromData | Returns the mime type of the given data . If the data provides a read me... |
Private members
Modifiers | Member | Description |
---|---|---|
@ |
g_lib | Global library handle. |
Descriptions
Codec.MimeTypes.fromData
def (data)
Returns the mime type of the given data
. If the data
provides a
read
method, the result of this method is used instead. The mime
type contains the type of the data and the encoding if any.
Codec.MimeTypes.g_lib
lib ('libmint-codec')
Global library handle.