Liking cljdoc? Tell your friends :D
Clojure only.

clojure.tools.nrepl.middleware.pr-values


pr-valuesclj

(pr-values h)

Middleware that returns a handler which transforms any :value slots in messages sent via the request's Transport to strings via pr, delegating all actual message handling to the provided handler.

Requires that results of eval operations are sent in messages in a :value slot.

If :value is already a string, and a sent message's :printed-value slot contains any truthy value, then :value will not be re-printed. This allows evaluation contexts to produce printed results in :value if they so choose, and opt out of the printing here.

Middleware that returns a handler which transforms any :value slots
in messages sent via the request's Transport to strings via `pr`,
delegating all actual message handling to the provided handler.

Requires that results of eval operations are sent in messages in a
:value slot.

If :value is already a string, and a sent message's :printed-value
slot contains any truthy value, then :value will not be re-printed.
This allows evaluation contexts to produce printed results in :value
if they so choose, and opt out of the printing here.
sourceraw docstring

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

× close