Stateful recording management: session atom, capture middleware, file I/O.
Stateful recording management: session atom, capture middleware, file I/O.
(capture-middleware)Returns a Ring middleware that captures request/response pairs into the session atom. Normalizes :request-method to :method for consistent data model. Only text-based bodies (JSON, EDN, form data) are materialized for recording. Binary bodies (file uploads, PDF downloads) pass through untouched.
Returns a Ring middleware that captures request/response pairs into the session atom. Normalizes :request-method to :method for consistent data model. Only text-based bodies (JSON, EDN, form data) are materialized for recording. Binary bodies (file uploads, PDF downloads) pass through untouched.
(peek-pre-recording-handler)Read the stored pre-recording handler without clearing it.
Read the stored pre-recording handler without clearing it.
(replay-entry! idx simulate-fn & [overrides])Replay a recorded entry. simulate-fn should be the repl/simulate-request function. For non-JSON content types, the raw body is passed through without re-encoding.
Replay a recorded entry. simulate-fn should be the repl/simulate-request function. For non-JSON content types, the raw body is passed through without re-encoding.
(restore-pre-recording-handler!)Return and clear the stored pre-recording handler.
Return and clear the stored pre-recording handler.
(store-pre-recording-handler! handler)Save the current live handler so it can be restored when recording stops.
Save the current live handler so it can be restored when recording stops.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |