Class InMemoryTextResource

Resource implementation for 'mem-txt' URI scheme where content is saved in URI query.

Implements

Constructors

Properties

Methods

Constructors

Properties

uri: URI

Methods

  • Reads latest content of this resource.

    If a resource supports versioning it updates version to latest. If a resource supports encoding it updates encoding to latest.

    Parameters

    • Optional options: {
          encoding?: string;
      }
      • Optional encoding?: string

    Returns Promise<string>

    Throws

    ResourceError.NotFound if a resource not found