Returns a promise that resolves with an ArrayBuffer representation of the body. If the body is null, it returns an empty ArrayBuffer.
Returns a promise that resolves with a Blob representation of the body. The Blob's type will be the value of the 'content-type' header.
Returns a promise that resolves with a FormData representation of the body. If the body cannot be decoded as form data, it throws a TypeError.
TypeError
Returns a promise that resolves with a JSON representation of the body. If the body cannot be parsed as JSON, it throws a SyntaxError.
Returns a promise that resolves with a text representation of the body.
Generated using TypeDoc
Returns a promise that resolves with an ArrayBuffer representation of the body. If the body is null, it returns an empty ArrayBuffer.