Send plain javascript object. When constructing objects, make sure to use helper K:
{
outter: K.ATTR({ status: "1" }, {
inner: K.ITEM("s32", 1)
})
}
Or follow xml-like format manually:
{
outter: {
"@attr": { status: "1" },
inner: {
"@attr": { __type: "s32" },
"@content": [1]
}
}
}
Send xml data using pug template system.
Render and send pug template from a file
Send empty response with custom status code
Send empty response with status code 0
Send xml data using ejs template system.
Render and send ejs template from a file
Generated using TypeDoc
Send empty response with status code 1