Catacumba Api Documentation

Version: 2.2.1

catacumba.handlers.parse

body-params

(body-params)(body-params {:keys [parsefn attr], :or {parsefn parse-body, attr :data}})

A route chain that parses the body into a clojure friendly data structure.

This function optionally accept a used defined method or multimethod where to delegate the body parsing.

parse-body

multimethod

A polymorophic method for parse body into clojure friendly data structure.

read-body

(read-body {:keys [method], :as context})

A handler that just reads the body from request and puts it on the context under :body key.