Stone.js API
    Preparing search index...
    • Reads the FC body buffer once, returning text for textual content types and bytes otherwise.

      Parameters

      • body: Buffer<ArrayBufferLike>

        The FC request body buffer.

      • contentType: string

        The content-type header value.

      Returns string | Uint8Array<ArrayBufferLike>

      The raw body, or undefined when there is none.