Liking cljdoc? Tell your friends :D

cmr.http.kit.app.handler

This namespace defines the handlers for general resources.

Simple handlers will only need to make a call to a library and then have that data prepared for the client by standard response function. More complex handlers will need to perform additional tasks. For example, in order of increasing complexity:

  • utilize non-default, non-trivial response functions
  • operate on the obtained data with various transformations, including extracting form data, query strings, etc.
  • take advantage of middleware functions that encapsulate complicated business logic
This namespace defines the handlers for general resources.

Simple handlers will only need to make a call to a library and then have that
data prepared for the client by standard response function. More complex
handlers will need to perform additional tasks. For example, in order of
increasing complexity:
* utilize non-default, non-trivial response functions
* operate on the obtained data with various transformations, including
  extracting form data, query strings, etc.
* take advantage of middleware functions that encapsulate complicated
  business logic
raw docstring

cmr.http.kit.response

This namespace defines a default set of transform functions suitable for use in presenting results to HTTP clients.

Note that ring-based middleeware may take advantage of these functions either by single use or composition.

This namespace defines a default set of transform functions suitable for use
in presenting results to HTTP clients.

Note that ring-based middleeware may take advantage of these functions either
by single use or composition.
raw docstring

cmr.http.kit.site.data

The functions of this namespace are specifically responsible for generating data structures to be consumed by site page templates.

Of special note: this namespace and its sibling page namespace are only ever meant to be used in the cmr.search.site namespace, particularly in support of creating site routes for access in a browser.

Under no circumstances should cmr.search.site.data be accessed from outside this context; the data functions defined herein are specifically for use in page templates, structured explicitly for their needs.

The functions of this namespace are specifically responsible for generating
data structures to be consumed by site page templates.

Of special note: this namespace and its sibling `page` namespace are only
ever meant to be used in the `cmr.search.site` namespace, particularly in
support of creating site routes for access in a browser.

Under no circumstances should `cmr.search.site.data` be accessed from outside
this context; the data functions defined herein are specifically for use
in page templates, structured explicitly for their needs.
raw docstring

cmr.http.kit.site.pages

The functions of this namespace are specifically responsible for returning ready-to-serve pages.

The functions of this namespace are specifically responsible for returning
ready-to-serve pages.
raw docstring

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

× close