The MIME library reference¶
The MIME module¶
- $default-mime-type-map Constant¶
- <invalid-mime-type-error> Open Class¶
- Superclasses:
- <mime-type> Open Class¶
- Superclasses:
- Init-Keywords:
subtype (required) – An instance of
<byte-string>.type (required) – An instance of
<byte-string>.
- extension-to-mime-type Open Generic function¶
- Signature:
extension-to-mime-type (extension type-map) => (mt)
- Parameters:
extension – An instance of
<string>.type-map – An instance of
<mime-type-map>.
- Values:
mt – An instance of
false-or(<mime-type>).
- extension-to-mime-type(<byte-string>, <mime-type-map>) Method¶
- extension-to-mime-type-setter Open Generic function¶
- Signature:
extension-to-mime-type-setter (mt extension type-map) => (mt)
- Parameters:
mt – An instance of
<mime-type>.extension – An instance of
<string>.type-map – An instance of
<mime-type-map>.
- Values:
mt – An instance of
<mime-type>.
- extension-to-mime-type-setter(<mime-type>, <byte-string>, <mime-type-map>) Method¶
- load-mime-types Open Generic function¶
- Signature:
load-mime-types (type-map pathname) => ()
- Parameters:
type-map – An instance of
<mime-type-map>.pathname – An instance of
<pathname>.
- load-mime-types(<mime-type-map>, <pathname>) Method¶
- mime-name Open Generic function¶
- Signature:
mime-name (mt) => (name)
- Parameters:
mt – An instance of
<mime-type>.
- Values:
name – An instance of
<byte-string>.
- mime-name({<mime-type> in mime}) Method¶
- mime-subtype Open Generic function¶
- Signature:
mime-subtype (mt) => (subtype)
- Parameters:
mt – An instance of
<mime-type>.
- Values:
subtype – An instance of
<byte-string>.
- mime-subtype({<mime-type> in mime}) Method¶
- mime-type Open Generic function¶
- Signature:
mime-type (mt) => (type)
- Parameters:
mt – An instance of
<mime-type>.
- Values:
type – An instance of
<byte-string>.
- mime-type({<mime-type> in mime}) Method¶
- mime-type-to-string Generic function¶
- Signature:
mime-type-to-string (mtype) => (string)
- Parameters:
mtype – An instance of
<mime-type>.
- Values:
string – An instance of
<byte-string>.
- string-to-mime-type Generic function¶
- Signature:
string-to-mime-type (string #key class) => (mime-type)
- Parameters:
string – An instance of
<string>.class (#key) – An instance of
subclass(<mime-type>).
- Values:
mime-type – An instance of
<mime-type>.