Liking cljdoc? Tell your friends :D

org.akvo.resumed


file-for-uploadclj

(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
sourceraw docstring

gen-idclj

(gen-id)
source

get-filenameclj

(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
sourceraw docstring

get-headerclj

(get-header req header)
source

handle-requestcljmultimethod

source

hostclj

(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
sourceraw docstring

http-default-portsclj

source

id-from-urlclj

(id-from-url url)
source

known-protocolsclj

source

locationclj

(location req)

Get Location string from request

Get Location string from request
sourceraw docstring

make-handlerclj

(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`
sourceraw docstring

options-headersclj

(options-headers)
source

patchclj

(patch req {:keys [save-path upload-cache]})
source

portclj

(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)
sourceraw docstring

postclj

(post req {:keys [save-path upload-cache max-upload-size]})
source

protocolclj

(protocol req)

Returns the protocol #{"http" "https"} for a given request

Returns the protocol #{"http" "https"} for a given request
sourceraw docstring

save-pathclj

(save-path save-dir)
source

to-numberclj

(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
sourceraw docstring

tus-headersclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close