(def-op op-name handler-sym result-key & {:keys [serialize? pr-str no-args?]})Register a simple nREPL op.
op-name - op name (string).
handler-sym - quoted fully-qualified symbol of the handler fn;
required and resolved lazily on first use.
result-key - keyword under which to send the handler's return value.
Options:
:serialize? - pass the handler result through serialize-response
before replying (honors :serialization-format in msg)
:pr-str - pr-str the handler result before replying
:no-args? - invoke the handler with no arguments (default: pass msg)
Register a simple nREPL op.
`op-name` - op name (string).
`handler-sym` - quoted fully-qualified symbol of the handler fn;
required and resolved lazily on first use.
`result-key` - keyword under which to send the handler's return value.
Options:
:serialize? - pass the handler result through `serialize-response`
before replying (honors :serialization-format in msg)
:pr-str - pr-str the handler result before replying
:no-args? - invoke the handler with no arguments (default: pass msg)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 |