Search...
body
Returns an object representing the body of the incoming call to an HTTP function.
Description
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.
Type:
WixHttpFunctionRequestBodyRead Only
Was this helpful?
Get the body from a call to an HTTP function
Copy Code
1// In http-functions.js23export function use_myFunction(request) {45 request.body.text()6 .then( (body) => {7 let requestBody = body;8 } );910}