Liking cljdoc? Tell your friends :D

zodiac.core


*request*clj

Bound to the current request.

Bound to the current request.
sourceraw docstring

*router*clj

The router used by the current request. This is the same as (:reitit.core/router *request*)

The router used by the current request.  This is the same as `(:reitit.core/router *request*)`
sourceraw docstring

*session*clj

The session in the current request. This is the same as (:session *request*)

The session in the current request.  This is the same as `(:session *request*)`
sourceraw docstring

html-responseclj

(html-response doc)
(html-response status doc)

Return an HTML ring response. Attempt to render the body as HTML unless its already a string.

Return an HTML ring response. Attempt to render the body as HTML unless its
already a string.
sourceraw docstring

json-responseclj

(json-response data)
(json-response status data)

Return a JSON ring response. Attempt to render the body as JSON unless its already a string.

Return a JSON ring response. Attempt to render the body as JSON unless its
already a string.
sourceraw docstring

startclj

(start)
(start options)

Start the zodiac server. Returns an integrant system map.

Start the zodiac server.  Returns an integrant system map.
sourceraw docstring

stopclj

(stop system)

Stop the zodiac server. Accepts the system map returned

Stop the zodiac server.  Accepts the system map returned
sourceraw docstring

url-forclj

(url-for name-or-path)
(url-for name-or-path args)
(url-for name-or-path args query-params)

Return a url string given a route name and optional arg and query params. This functions uses the router for the current request bound to request.

If you need to use a different router then temporary bind router before calling this function.

Return a url string given a route name and optional arg and query params. This
functions uses the router for the current request bound to *request*.

If you need to use a different router then temporary bind *router* before
calling this function.
sourceraw docstring

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

× close