Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Function readBodyText

    • Read a whole body as UTF-8, bounded.

      Bounded because this runs on the error path, where the remote end is by definition not behaving as expected: an unbounded read of a hostile or malfunctioning response is how an error handler becomes the outage. What is read is enough to classify the failure and to quote it in a durable row.

      Parameters

      • body: AsyncIterable<Uint8Array<ArrayBufferLike>>

      Returns Promise<string>