(wrap-cheshire-json handler
{:handler.middleware/keys [state-key parser]
:or {state-key :handler/state}})
Wraps the handler by serializing and deserializing the state under the
specified state-key
. Returns the serialized state.
Accepts the following options namespaced under:handler.middelware
:
state-key
- :handler/state
by defaultparser
- parser options:
:parse-strict?
- the parsing mode, if true (default) - top level
arrays will not be parsed lazily:key-fn
- the function to be applied when deserializing object
keys, defaults to keyword
:date-format
- format string used for date serialization, defaults
to yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
Wraps the handler by serializing and deserializing the state under the specified `state-key`. Returns the serialized state. Accepts the following options namespaced under`:handler.middelware`: * `state-key` - `:handler/state` by default * `parser` - parser options: + `:parse-strict?` - the parsing mode, if true (default) - top level arrays will not be parsed lazily + `:key-fn` - the function to be applied when deserializing object keys, defaults to `keyword` + `:date-format` - format string used for date serialization, defaults to `yyyy-MM-dd'T'HH:mm:ss.SSS'Z'`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close