Liking cljdoc? Tell your friends :D
Clojure only.

compojure.handlerdeprecated

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
raw docstring

apicljdeprecated

(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

sitecljdeprecated

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