clj-chrome-devtools.commands.io
Input/Output operations for streams produced by DevTools.
close
(close)
(close {:as params, :keys [handle]})
(close connection {:as params, :keys [handle]})
Close the stream, discard any temporary backing storage.
Parameters map keys:
Key | Description |
---|---|
:handle | Handle of the stream to close. |
read
(read)
(read {:as params, :keys [handle offset size]})
(read connection {:as params, :keys [handle offset size]})
Read a chunk of the stream
Parameters map keys:
Key | Description |
---|---|
:handle | Handle of the stream to read. |
:offset | Seek to the specified offset before reading (if not specificed, proceed with offset |
following the last read). Some types of streams may only support sequential reads. (optional) :size | Maximum number of bytes to read (left upon the agent discretion if not specified). (optional)
Return map keys:
Key | Description |
---|---|
:base64-encoded | Set if the data is base64-encoded (optional) |
:data | Data that were read. |
:eof | Set if the end-of-file condition occurred while reading. |
resolve-blob
(resolve-blob)
(resolve-blob {:as params, :keys [object-id]})
(resolve-blob connection {:as params, :keys [object-id]})
Return UUID of Blob object specified by a remote object id.
Parameters map keys:
Key | Description |
---|---|
:object-id | Object id of a Blob object wrapper. |
Return map keys:
Key | Description |
---|---|
:uuid | UUID of the specified Blob. |