(decode codec payload)Decode a transport representation (string/bytes) back into a Clojure value.
Decode a transport representation (string/bytes) back into a Clojure value.
(encode codec value)Encode a Clojure value into a transport representation (string/bytes).
Encode a Clojure value into a transport representation (string/bytes).
(schema-codec schema)(schema-codec schema opts)Creates a SchemaCodec that runs schema/->wire! on encode and schema/coerce! on decode.
Composes as the first stage of a PipelineCodec.
Creates a `SchemaCodec` that runs `schema/->wire!` on encode and `schema/coerce!` on decode. Composes as the first stage of a `PipelineCodec`.
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 |