Liking cljdoc? Tell your friends :D

muuntaja.core


available-charsetsclj

Set of recognised charsets by the current JVM

Set of recognised charsets by the current JVM
sourceraw docstring

charsetsclj

(charsets m)

Set of charsets that the Muuntaja instance can handle

Set of charsets that the Muuntaja instance can handle
sourceraw docstring

createclj

(create)
(create muuntaja-or-options)

Creates a new Muuntaja intance from a given prototype:

  • existing Muuntaja (no-op)
  • options-map (new created)
  • nothing (new created with default-options)
Creates a new Muuntaja intance from a given prototype:
- existing Muuntaja (no-op)
- options-map (new created)
- nothing (new created with default-options)
sourceraw docstring

decodeclj

(decode format data)
(decode m format data)
(decode m format data charset)

Decode data into the given format. Returns Clojure Data or throws.

Decode data into the given format. Returns Clojure Data or throws.
sourceraw docstring

decode-response-bodyclj

(decode-response-body response)
(decode-response-body m response)

Decode response :body using the format defined by "Content-Type" header. Returns Clojure Data or throws.

Decode response :body using the format defined by "Content-Type" header.
Returns Clojure Data or throws.
sourceraw docstring

decodesclj

(decodes m)

Set of formats that the Muuntaja instance can decode

Set of formats that the Muuntaja instance can decode
sourceraw docstring

default-charsetclj

(default-charset m)

Default charset of the Muuntaja instance

Default charset of the Muuntaja instance
sourceraw docstring

default-formatclj

(default-format m)

Default format of the Muuntaja instance

Default format of the Muuntaja instance
sourceraw docstring

default-optionsclj

source

encodeclj

(encode format data)
(encode m format data)
(encode m format data charset)

Encode data into the given format. Returns InputStream or throws.

Encode data into the given format. Returns InputStream or throws.
sourceraw docstring

encode-collectionsclj

(encode-collections _ response)
source

encodesclj

(encodes m)

Set of formats that the Muuntaja instance can encode

Set of formats that the Muuntaja instance can encode
sourceraw docstring

extract-accept-charset-ringclj

(extract-accept-charset-ring request)

Extracts accept-charset from ring-request.

Extracts accept-charset from ring-request.
sourceraw docstring

extract-accept-ringclj

(extract-accept-ring request)

Extracts accept from ring-request.

Extracts accept from ring-request.
sourceraw docstring

extract-content-type-ringclj

(extract-content-type-ring request)

Extracts content-type from ring-request.

Extracts content-type from ring-request.
sourceraw docstring

formatsclj

(formats m)

Set of formats that the Muuntaja instance can decode or encode

Set of formats that the Muuntaja instance can decode or encode
sourceraw docstring

get-request-format-and-charsetclj

(get-request-format-and-charset request)
source

get-response-format-and-charsetclj

(get-response-format-and-charset request)
source

installclj

(install options format)
(install options format name)
source

instanceclj

the default instance

the default instance
sourceraw docstring

matchersclj

(matchers m)

Map of format->regexp that the Muuntaja instance knows

Map of format->regexp that the Muuntaja instance knows
sourceraw docstring

Muuntajacljprotocol

adaptersclj

(adapters this)

decoderclj

(decoder this format)

encoderclj

(encoder this format)

optionsclj

(options this)
source

muuntaja?clj

(muuntaja? x)
source

MuuntajaHttpcljprotocol

format-requestclj

(format-request this request)

format-responseclj

(format-response this request response)

negotiate-and-format-requestclj

(negotiate-and-format-request this request)

negotiate-request-responseclj

(negotiate-request-response this request)

request-formatclj

(request-format this request)

response-formatclj

(response-format this request)
source

select-formatsclj

(select-formats options formats)
source

set-response-content-typeclj

(set-response-content-type response content-type)
source

slurpclj

(slurp x)
source

transform-formatsclj

(transform-formats options f)
source

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

× close