Liking cljdoc? Tell your friends :D

monkey.ci.web.middleware

Middleware for web requests. Could be that we move this to interceptors later.

Middleware for web requests.  Could be that we move this to interceptors later.
raw docstring

default-middlewareclj

Default middleware for http servers

Default middleware for http servers
sourceraw docstring

exception-loggerclj

(exception-logger h)
source

exception-middlewareclj

source

kebab-case-queryclj

(kebab-case-query h)

Middleware that converts any query params to kebab-case, to make them more idiomatic.

Middleware that converts any query params to kebab-case, to make them more idiomatic.
sourceraw docstring

log-requestclj

(log-request h)

Just logs the request, for monitoring or debugging purposes.

Just logs the request, for monitoring or debugging purposes.
sourceraw docstring

passthrough-middlewareclj

(passthrough-middleware h)

No-op middleware, just passes the request to the parent handler.

No-op middleware, just passes the request to the parent handler.
sourceraw docstring

post-eventsclj

(post-events h)

Middleware that posts any events that are found in the response map

Middleware that posts any events that are found in the response map
sourceraw docstring

stringify-bodyclj

(stringify-body h)

Since the raw body could be read more than once (security, content negotiation...), this interceptor replaces it with a string that can be read multiple times. This should only be used for requests that have reasonably small bodies! In other cases, the body could be written to a temp file.

Since the raw body could be read more than once (security, content negotiation...),
this interceptor replaces it with a string that can be read multiple times.  This
should only be used for requests that have reasonably small bodies!  In other
cases, the body could be written to a temp file.
sourceraw docstring

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

× close