Liking cljdoc? Tell your friends :D

net.resp.wire


as-inputclj

(as-input val format)

creates an input from value

(as-input {:a 1} :json) => "{"a":1}"

creates an input from value

(as-input {:a 1} :json)
=> "{\"a\":1}"
raw docstring

callclj

(call remote command)

completes a request on the wire

completes a request on the wire
raw docstring

closeclj

(close remote)

coerceclj

(coerce output)
(coerce output format)

coerces redis return to bytes

coerces redis return to bytes
raw docstring

coerce-bytesclj

(coerce-bytes bytes format)

coerces bytes to data

(coerce-bytes (.getBytes "OK") :json) => "OK"

(coerce-bytes (serialize-bytes {:a 1} :json) :json) => {:a 1}

coerces bytes to data

(coerce-bytes (.getBytes "OK") :json)
=> "OK"

(coerce-bytes (serialize-bytes {:a 1} :json) :json)
=> {:a 1}
raw docstring

deserialize-bytesclj

(deserialize-bytes bytes format)

converts bytes back to data structure

(deserialize-bytes (serialize-bytes {:a 1} :json) :json) => {:a 1}

converts bytes back to data structure

(deserialize-bytes (serialize-bytes {:a 1} :json)
                   :json)
=> {:a 1}
raw docstring

readclj

(read remote)

serialize-bytesclj

(serialize-bytes val format)

serializes objects (data) to bytes

(h/string (serialize-bytes "HELLO" :string)) => "HELLO"

serializes objects (data) to bytes

(h/string (serialize-bytes "HELLO" :string))
=> "HELLO"
raw docstring

writeclj

(write remote command)

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

× close