@microsoft/ccf-app
    Preparing search index...

    Interface Body<T>

    The body of a request.

    interface Body<T extends JsonCompatible<T> = any> {
        arrayBuffer(): ArrayBuffer;
        json(): T;
        text(): string;
    }

    Type Parameters

    Index

    Methods

    • Returns the request body unmodified as ArrayBuffer.

      Returns ArrayBuffer

    • Parses the request body as JSON.

      Returns T

    • Parses the request body as UTF-8 string.

      Returns string