Database access interceptor. Enter: nil. Leave: Fetch and execute a given query using the chosen database driver, if succeeds associate its results into state response data. Remember the entry query must be a sql-map, e.g: {:select [:*] :from [:users]}.
Database access interceptor. Enter: nil. Leave: Fetch and execute a given query using the chosen database driver, if succeeds associate its results into state response data. Remember the entry query must be a sql-map, e.g: {:select [:*] :from [:users]}.
Log interceptor. Enter: Print 'Enter:' followed by the complete state map. Leave: Print 'Leave:' followed by the complete state map.
Log interceptor. Enter: Print 'Enter:' followed by the complete state map. Leave: Print 'Leave:' followed by the complete state map.
(message msg)
This interceptor creates a function that prints predefined message. Enter: Print an arbitrary message. Leave: Print an arbitrary message.
This interceptor creates a function that prints predefined message. Enter: Print an arbitrary message. Leave: Print an arbitrary message.
(muuntaja)
(muuntaja interceptor)
Muuntaja encoder/decoder interceptor.
Muuntaja encoder/decoder interceptor.
Update the request map with parsed url-encoded parameters. Adds the following keys to the request map:
:query-params - a map of parameters from the query string :form-params - a map of parameters from the body :params - a merged map of all types of parameter
Enter: TODO. Leave: nil.
Update the request map with parsed url-encoded parameters. Adds the following keys to the request map: :query-params - a map of parameters from the query string :form-params - a map of parameters from the body :params - a merged map of all types of parameter Enter: TODO. Leave: nil.
(session-user-id)
(session-user-id session-instance)
This interceptor handles the session user id management. Enter: Get the session id from the request header, if that operation doesn't succeeds a new session is created an associated to the current state, otherwise the cached session data is used. Leave: Verify if the state has a session id, if so add it to the session instance and remove the new session property of the current state. The final step is the association of the session id to the response header.
This interceptor handles the session user id management. Enter: Get the session id from the request header, if that operation doesn't succeeds a new session is created an associated to the current state, otherwise the cached session data is used. Leave: Verify if the state has a session id, if so add it to the session instance and remove the new session property of the current state. The final step is the association of the session id to the response header.
(session-user-role)
(session-user-role f role)
This interceptor updates session data user role:authorization from the given request header. Enter: Fetch the authorization from its request/state if succeeds update the current state with that information, also update the user role with a custom value or the default :guest. Leave: nil.
This interceptor updates session data user role:authorization from the given request header. Enter: Fetch the authorization from its request/state if succeeds update the current state with that information, also update the user role with a custom value or the default :guest. Leave: nil.
Side-effect interceptor.
Enter: nil.
Leave: Fetch and execute the state registered
side-effect procedure, if none was found execute: xiana/ok
.
Side-effect interceptor. Enter: nil. Leave: Fetch and execute the state registered side-effect procedure, if none was found execute: `xiana/ok`.
View interceptor.
Enter: nil.
Leave: Fetch and execute the state view registered
procedure, if none was found execute: xiana/ok
.
View interceptor. Enter: nil. Leave: Fetch and execute the state view registered procedure, if none was found execute: `xiana/ok`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close