A11 TypeScript API - v0.7.0
    Preparing search index...

    Function statusToChunk

    • Encode a structured action status as a reserved-MIME chunk.

      With closing set the chunk is a node lifecycle marker rather than a value: it says the producer drained the node and closed its write half with this status. See CLOSE_STATUS_ATTRIBUTE.

      Parameters

      • status: Status
      • closing: boolean = false

      Returns StatusOr<Chunk>