Liking cljdoc? Tell your friends :D

pantomime.mime


add-patternclj

(add-pattern name pattern test)

Adds a new MimeType pattern to pantomime

Adds a new MimeType pattern to pantomime
sourceraw docstring

detectorclj

source

extension-for-nameclj

(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"
sourceraw docstring

for-nameclj

(for-name s)

Returns a MimeType for provided name, e.g. image/png

Returns a MimeType for provided name, e.g. image/png
sourceraw docstring

instance-of?clj

(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.
sourceraw docstring

media-type-registryclj

source

mime-adderclj

source

MimeTypeCoercionscljprotocol

as-media-typeclj

(as-media-type x)

Turn a { String, MimeType } object into a MediaType.

Turn a { String, MimeType } object into a MediaType.

as-mime-typeclj

(as-mime-type x)

Turn a { String, MediaType } object into a MimeType.

Turn a { String, MediaType } object into a MimeType.
source

MIMETypeDetectioncljprotocol

mime-type-ofclj

(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)
source

registryclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close