(extract-token-bearer {:keys [headers]})
Given a request, extracts the token from the authorization header.
Given a request, extracts the token from the authorization header.
(get path success-fn error-fn)
(get path criteria success-fn error-fn)
(get path criteria options success-fn error-fn)
(post path success-fn error-fn)
(post path model success-fn error-fn)
(post path model options success-fn error-fn)
(post-files path content success-fn error-fn)
(post-files uri content options success-fn error-fn)
Post files to the server. The files can be extracted from a drop event like this:
(defn- handle-drop [e page-state] (.preventDefault e) (let [file-list (aget e "dataTransfer" "files") file-count (aget file-list "length") files (mapv #(.item file-list %) (range file-count))] (swap! page-state update-in [:invitations :import-data :files] (fnil concat []) files)))
Post files to the server. The files can be extracted from a drop event like this: (defn- handle-drop [e page-state] (.preventDefault e) (let [file-list (aget e "dataTransfer" "files") file-count (aget file-list "length") files (mapv #(.item file-list %) (range file-count))] (swap! page-state update-in [:invitations :import-data :files] (fnil concat []) files)))
(wrap-authentication handler {:keys [authenticate-fn]})
Wraps the handler with an authentication lookup, passing the request on to the handle step in the handler if the authentication function returns non-nil, otherwise returing an unauthenticated response.
Options: :authenticate-fn - A function accepting one argument (the request) and returning the authentication result, or nil
Wraps the handler with an authentication lookup, passing the request on to the handle step in the handler if the authentication function returns non-nil, otherwise returing an unauthenticated response. Options: :authenticate-fn - A function accepting one argument (the request) and returning the authentication result, or nil
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close