chickadee » ipfs » reader/plain

(reader/plain #!optional number (port (current-input-port)))procedure
(reader/json #!optional (port (current-input-port)))procedure
(reader/json+ #!optional (port (current-input-port)))procedure

Convenience procedures to read the replies.

reader/plain is just a rename of read-string from

reader/json is just a rename of read-json from medea, except that #:consume-trailing-whitespace is #f.

reader/json+ is similar to reader/json, but it tries to read more than one JSON message. This is used as the default reader for add, that returns several JSON objects, one for each added file or directory. The deserialized objects are returned in a list in the reverse order of appearance.