Liking cljdoc? Tell your friends :D

s-exp.legba.middleware


ex->responsecljmultimethod


ex->rfc9457-typecljmultimethod


wrap-error-responseclj

(wrap-error-response handler opts)

Wraps handler with error checking middleware that will transform validation Exceptions to equivalent http response, as infered per ex->response

Wraps handler with error checking middleware that will transform validation
Exceptions to equivalent http response, as infered per `ex->response`
raw docstring

wrap-error-response-fnclj

(wrap-error-response-fn handler req {:as opts})

wrap-validationclj

(wrap-validation handler schema method path {:as opts :keys [include-schema]})

Middleware that wraps a standard RING handler with OpenAPI request and response validation. Validates both the incoming request and outgoing response according to the provided schema, for the specified HTTP method and path. Additional options:, such as including the validation schema with each request (include-schema).

Middleware that wraps a standard RING handler with OpenAPI request and response validation.
Validates both the incoming request and outgoing response according to the
provided `schema`, for the specified HTTP `method` and `path`. Additional
options:, such as including the validation schema with each
request (`include-schema`).
raw 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