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.

Was this helpful?

Get the body from a call to an HTTP function

Copy Code
1// In http-functions.js
2
3export function use_myFunction(request) {
4
5 request.body.text()
6 .then( (body) => {
7 let requestBody = body;
8 } );
9
10}