(add-pattern name pattern test)
Adds a new MimeType pattern to pantomime
Adds a new MimeType pattern to pantomime
(extension-for-name s)
Returns the most common known extension for provided MIME type name (e.g. image/jpeg) with a leading dot, e.g. ".jpg"
Returns the most common known extension for provided MIME type name (e.g. image/jpeg) with a leading dot, e.g. ".jpg"
(for-name s)
Returns a MimeType for provided name, e.g. image/png
Returns a MimeType for provided name, e.g. image/png
(instance-of? a b)
Check if the first { MIME, media } type is an instance of the second.
Check if the first { MIME, media } type is an instance of the second.
(as-media-type x)
Turn a { String, MimeType } object into a MediaType.
Turn a { String, MimeType } object into a MediaType.
(as-mime-type x)
Turn a { String, MediaType } object into a MimeType.
Turn a { String, MediaType } object into a MimeType.
(mime-type-of input)
Returns MIME type of given input. Supports array of bytes, files, input streams and file names. With file names, detector uses only file extension. With arrays of bytes and inputs that can be coerced to input stream, several additional detection methods are performed (magic bytes, tag detection for XML-based formats, etc)
Returns MIME type of given input. Supports array of bytes, files, input streams and file names. With file names, detector uses only file extension. With arrays of bytes and inputs that can be coerced to input stream, several additional detection methods are performed (magic bytes, tag detection for XML-based formats, etc)
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |