(get-headers request)
Creates a name/value map of all the request headers.
Creates a name/value map of all the request headers.
(normalize-response response)
Normalize response for ring spec
Normalize response for ring spec
(on-file-change! target on-change!)
Sets up a WatchService, and registers the parent of <target> with it for changes. A separate thread constantly polls for events, and when the affected file matches <target>, calls <on-change> (no-args). Returns a (cancellable) Future. ATTENTION: Cancelling the future doesn't break the loop immediately - might take up to 5 minutes (worst-case)!
Sets up a WatchService, and registers the parent of <target> with it for changes. A separate thread constantly polls for events, and when the affected file matches <target>, calls <on-change> (no-args). Returns a (cancellable) Future. ATTENTION: Cancelling the future doesn't break the loop immediately - might take up to 5 minutes (worst-case)!
(set-headers response headers)
Update a HttpServletResponse with a map of headers.
Update a HttpServletResponse with a map of headers.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close