CrossClj

0.5.0 docs

SourceDocs



RECENT
    VARS
    -negotiate-accept
    -negotiate-accept-charset
    -negotiate-content-type
    available-charsets
    charsets
    content-type
    create
    create-adapters
    create-coder
    decode
    decodes
    default-charset
    default-format
    default-options
    disable-request-decoding
    disable-response-encoding
    encode
    encode-collections-with-override
    encodes
    extract-accept-charset-ring
    extract-accept-ring
    extract-content-type-ring
    fail-on-request-charset-negotiation
    fail-on-request-decode-exception
    fail-on-response-charset-negotiation
    fail-on-response-format-negotiation
    formats
    key-set
    matchers
    Muuntaja
    muuntaja?
    MuuntajaHttp
    on-exception
    select-formats
    set-content-type
    set-response-content-type
    transform-formats

    « Index of all namespaces of this project

    Private
    (-negotiate-accept m s)
    Private
    (-negotiate-accept-charset m s)
    Private
    (-negotiate-content-type m s)
    Set of recognised charsets by the current JVM
    
    (charsets m)
    Set of charsets that the Muuntaja instance can handle
    
    Private
    (content-type format charset)
    (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)
    Private
    (create-adapters formats default-charset allow-empty-input?)
    Private
    (create-coder format type spec spec-opts default-charset allow-empty-input? [p pf])
    (decode m format data)(decode m format data charset)
    Decode data into the given format. Returns InputStream or throws.
    
    (decodes m)
    Set of formats that the Muuntaja instance can decode
    
    (default-charset m)
    Default charset of the Muuntaja instance
    
    (default-format m)
    Default format of the Muuntaja instance
    
    (disable-request-decoding request)
    (disable-response-encoding response)
    (encode m format data)(encode m format data charset)
    Encode data into the given format. Returns InputStream or throws.
    
    (encode-collections-with-override _ response)
    (encodes m)
    Set of formats that the Muuntaja instance can encode
    
    (extract-accept-charset-ring request)
    Extracts accept-charset from ring-request.
    
    (extract-accept-ring request)
    Extracts accept from ring-request.
    
    (extract-content-type-ring request)
    Extracts content-type from ring-request.
    
    Private
    (fail-on-request-charset-negotiation m)
    Private
    (fail-on-request-decode-exception m e request-format-and-charset response-format-and-charset request)
    Private
    (fail-on-response-charset-negotiation m)
    Private
    (fail-on-response-format-negotiation m)
    (formats m)
    Set of formats that the Muuntaja instance can decode or encode
    
    Private
    (key-set m accept?)
    (matchers m)
    Map of format->regexp that the Muuntaja instance knows
    
    protocol
    (adapters this)
    (decoder this format)
    (encoder this format)
    (options this)
    protocol
    (format-request this request)
    (format-response this request response)
    (negotiate-and-format-request this request)
    (negotiate-request-response this request)
    (request-format this request)
    (response-format this request)
    Private
    (on-exception allow-empty-input? e format type)
    (select-formats options formats)
    Private
    (set-content-type response content-type)
    (set-response-content-type response content-type)
    (transform-formats options f)