Introduction

An object returned by the body property representing the body of a call to an HTTP function.

The request body can be a maximum of 512kb.

Did this help?

buffer( )


Returns a Promise which resolves to the body of the call in binary as a Node.js Buffer object.

Method Declaration
Copy
function buffer(): Promise<object>;
Request
This method does not take any parameters
Returns
Return Type:Promise<object>
Did this help?

json( )


Returns a Promise which resolves to the body of the call as a JSON object.

Method Declaration
Copy
function json(): Promise<object>;
Request
This method does not take any parameters
Returns
Return Type:Promise<object>
Did this help?

text( )


Returns a Promise which resolves to the body of the call as a string.

Method Declaration
Copy
function text(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Did this help?