Represents the changes needed for a PATCH request.

interface Patch {
    binary: boolean;
    data: Guarded<Readable>;
    isEmpty: boolean;
    metadata: RepresentationMetadata;

Hierarchy (view full)


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.