(build-vary-header {:keys [media-type charset language encoding]
:as representation})
(by-method map)
returns a handler function that uses the request method to lookup a function from the map and delegates to it.
Example:
(by-method {:get "This is the entity" :delete "Entity was deleted successfully."})
returns a handler function that uses the request method to lookup a function from the map and delegates to it. Example: (by-method {:get "This is the entity" :delete "Entity was deleted successfully."})
Return a function that evaluaties if the give argument a) is contained in a collection b) equals an argument c) when applied to a function evaluates as true
Return a function that evaluaties if the give argument a) is contained in a collection b) equals an argument c) when applied to a function evaluates as true
(run-handler name
status
message
{:keys [resource request representation] :as context})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close