(file-for-upload save-dir uri)
Given a save-dir and a file upload url, it returns the java.io.File that was uploaded
Given a save-dir and a file upload url, it returns the java.io.File that was uploaded
(get-filename s)
Returns a file name decoding a base64 string of Upload-Metadata header. Attribution: http://stackoverflow.com/a/2054226
Returns a file name decoding a base64 string of Upload-Metadata header. Attribution: http://stackoverflow.com/a/2054226
(host req)
Returns the HOST for a given request It attempts to honor: X-Forwared-Host, Origin, Host headers
Returns the HOST for a given request It attempts to honor: X-Forwared-Host, Origin, Host headers
(location req)
Get Location string from request
Get Location string from request
(make-handler & [opts])
Returns a ring handler capable of responding to client requests from
a tus
client. An optional map with configuration can be used
{:save-dir "/path/to/save/dir"} defaults to java.io.tmpdir
Returns a ring handler capable of responding to client requests from a `tus` client. An optional map with configuration can be used {:save-dir "/path/to/save/dir"} defaults to `java.io.tmpdir`
(port req)
Returns the port of the request, Empty if port is 80, 443 as those are default ports Empty for forwared requests (server behind a proxy)
Returns the port of the request, Empty if port is 80, 443 as those are default ports Empty for forwared requests (server behind a proxy)
(protocol req)
Returns the protocol #{"http" "https"} for a given request
Returns the protocol #{"http" "https"} for a given request
(to-number s)
Returns a numeric representation of a String. Returns -1 on unparseable String, blank or nil
Returns a numeric representation of a String. Returns -1 on unparseable String, blank or nil
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close