The body of a request.

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

Type Parameters

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