Interface Representation

A representation of a resource.

Hierarchy

Implemented by

Properties

binary: boolean

Whether the data stream consists of binary/string chunks (as opposed to complex objects).

data: Guarded<Readable>

The raw data stream for this representation.

isEmpty: boolean

Whether the data stream is empty. This being true does not imply that the data stream has a length of more than 0, only that it is a possibility and should be read to be sure.

The corresponding metadata.