Search...
body
Sets or gets the body of the response as a string, object or binary buffer.
Type:
string
Read & Write|
Buffer|
ObjectWas this helpful?
Get the response body
Copy Code
1// In http-functions.js23export function use_myFunction(request) {45 let body = response.body; // "body text"67}
Set the response body
Copy Code
1// In http-functions.js23export function use_myFunction(request) {45 response.body = "body text";67}