Members
:Map
mimesThe Map of all the currently registered MIMEDefinition
s.
Methods
(p_ext) → { → MIMEDefinition">MIMEDefinition}
GetReturns the MIMEDefinition
associated with a given extension, if any.
Any MIMEDefinition registered with the same .ext will be overwritten.
Parameters:
Name | Type | Description |
---|---|---|
p_ext |
string |
Examples:
MIME.Get('.js');
(p_mime)
SetRegisters a MIMEDefinition
that can be retrieved using MIME.Get
Parameters:
Name | Type | Description |
---|---|---|
p_mime |
MIMEDefinition | MIME Definition to be added. Will be mapped to its |
Examples:
MIME.Set({ ext: '.js', desc: 'JavaScript', type: 'text/javascript' });