Class RepresentationPatchHandler

Handles a patch operation by getting the representation from the store, applying a RepresentationPatcher, and then writing the result back to the store.

In case there is no original representation (the store throws a NotFoundHttpError), the patcher is expected to create a new one.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

logger: Logger = ...

Methods

  • Checks whether the input can be handled by this class. If it cannot handle the input, rejects with an error explaining why.

    Parameters

    Returns Promise<void>

    A promise resolving if the input can be handled, rejecting with an Error if not.