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

replace-body-org-idclj

(replace-body-org-id h)

Since the org-id can be a cuid or a display id, this interceptor replaces the value in the request body with the one in the path params.

Since the `org-id` can be a cuid or a display id, this interceptor replaces the
value in the request body with the one in the path params.
sourceraw docstring

resolve-org-idclj

(resolve-org-id h resolver)

Replaces the org id when a display id is given. How resolving happens is delegated to a resolver fn that takes the req and the org display id. Since there is no sure way to distinguish between a display id and a cuid, the resolver should be able to handle both situations.

Replaces the org id when a display id is given.  How resolving happens is 
delegated to a resolver fn that takes the req and the org display id.  Since
there is no sure way to distinguish between a display id and a cuid, the
resolver should be able to handle both situations.
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 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