Liking cljdoc? Tell your friends :D
Clojure only.

compojure.handler

Functions to create Ring handlers from routes.

This namespace has been DEPRECATED in favor of the ring-defaults library.

Functions to create Ring handlers from routes.

This namespace has been **DEPRECATED** in favor of the [ring-defaults][]
library.

[ring-defaults]: https://github.com/ring-clojure/ring-defaults

apideprecated

(api routes)

Create a handler suitable for a web API. This adds the following middleware to your routes:

  • wrap-params
  • wrap-nested-params
  • wrap-keyword-params
Create a handler suitable for a web API. This adds the following
middleware to your routes:

- wrap-params
- wrap-nested-params
- wrap-keyword-params
sourceraw docstring

sitedeprecated

(site routes)
(site routes options)

Create a handler suitable for a standard website. This adds the following middleware to your routes:

  • wrap-session
  • wrap-flash
  • wrap-cookies
  • wrap-multipart-params
  • wrap-params
  • wrap-nested-params
  • wrap-keyword-params

A map of options may also be provided. These keys are provided:

:session : a map of session middleware options

:multipart : a map of multipart-params middleware options

Create a handler suitable for a standard website. This adds the
following middleware to your routes:

- wrap-session
- wrap-flash
- wrap-cookies
- wrap-multipart-params
- wrap-params
- wrap-nested-params
- wrap-keyword-params

A map of options may also be provided. These keys are provided:

:session
: a map of session middleware options

:multipart
: a map of multipart-params middleware options
sourceraw docstring

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

× close