Liking cljdoc? Tell your friends :D

domkm.silk.serve


?DELETEclj/s

source

?GETclj/s

source

?HEADclj/s

source

?OPTIONSclj/s

source

?POSTclj/s

source

?PUTclj/s

source

DELETEclj/s

source

GETclj/s

source

source

OPTIONSclj/s

source

POSTclj/s

source

PUTclj/s

source

request-map->URLclj

(request-map->URL {:keys [scheme server-name server-port uri query-string]
                   :as req})
source

ring-handlerclj

(ring-handler routes)
(ring-handler routes get-handler)

Takes a routes data structure or instance of domkm.silk/Routes and a get-handler function. get-handler should take a route name and return a handler function for that route. Returns a Ring handler function that:

  • takes Ring request map
  • converts the request map to a URL
  • associates the request map into the URL
  • matches routes against the new URL
  • when a match is found, associates params into request and passes that to a route handler function
Takes a routes data structure or instance of `domkm.silk/Routes` and a `get-handler` function.
`get-handler` should take a route name and return a handler function for that route.
Returns a Ring handler function that:
* takes Ring request map
* converts the request map to a URL
* associates the request map into the URL
* matches routes against the new URL
* when a match is found, associates params into request and passes that to a route handler function
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close