CrossClj

0.4.0 docs

SourceDocs



RECENT
    VARS
    +default-options+
    +kekkonen-handlers+
    +ring-dispatcher-options+
    attach-mode-parameter
    attach-ring-meta
    clean-context
    coerce-response
    copy-parameters
    get-response-schema
    handler-uri
    match
    mode-parameter
    Options
    prepare
    request-mode
    response-coercer
    ring-coercion
    ring-handler
    ring-input-schema
    routes
    uri->action
    uri-without-context

    « Index of all namespaces of this project

    Private
    (attach-mode-parameter schema)
    Private
    (attach-ring-meta options handler)
    Private
    (clean-context context)
    Private
    (coerce-response response responses matcher)
    Private
    (copy-parameters ctx parameters)
    Private
    (get-response-schema responses status)
    Private
    (handler-uri handler)
    (match match-uri ring-handler)(match match-uri match-request-method ring-handler)
    Inputs: ([match-uri ring-handler] [match-uri match-request-method ring-handler])
    
    Creates a ring-handler for given uri & request-method
    Private
    (prepare handler)
    Private
    (request-mode request)
    Private
    (response-coercer handler options)
    Private
    (ring-coercion parameters coercion)
    (ring-handler dispatcher)(ring-handler dispatcher options)
    Inputs: ([dispatcher :- Dispatcher] [dispatcher :- Dispatcher options :- k/KeywordMap])
    
    Creates a ring handler from Dispatcher and options.
    Private
    (ring-input-schema input parameters)
    (routes ring-handlers)
    Inputs: [ring-handlers :- [(s/maybe k/Function)]]
    Returns: k/Function
    
    Creates a ring handler of multiples handlers, matches in order.
    Private
    (uri->action path)
    Private
    (uri-without-context {:keys [uri context]})
    Extracts the uri from the request but dropping the context