Liking cljdoc? Tell your friends :D

hiposfer.kamal.server.handlers


directions-coercerclj

source

max-distanceclj

source

serverclj

all API handlers

all API handlers
sourceraw docstring

validateclj

(validate request spec)
(validate request k spec)

Throws an exception if request doesnt conform to spec, returns the request otherwise.

Accepts an optional keyword k to specify which part of the request to validate. Defaults to :params

We do it like this instead of creating a middleware for readability. We need access to the path parameters which are only added after the route has been matched.

See: https://groups.google.com/forum/?hl=en#!topic/compojure/o5l9m7nbGlE

Throws an exception if request doesnt conform to spec, returns the
 request otherwise.

Accepts an optional keyword k to specify which part of the request to
validate. Defaults to :params

We do it like this instead of creating a middleware for readability. We
need access to the path parameters which are only added after the route
has been matched.

See: https://groups.google.com/forum/?hl=en#!topic/compojure/o5l9m7nbGlE
sourceraw docstring

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

× close