body


Returns an object representing the body of the incoming call to an HTTP function.

Use the functions of the returned WixHttpFunctionRequestBody object to get the body in a number of formats.

The request body can be a maximum of 512kb.

Get the body from a call to an HTTP function
JavaScript
// In http-functions.js export function use_myFunction(request) { request.body.text().then((body) => { let requestBody = body; }); }
Did this help?