Send plain javascript object. When constructing objects, make sure to use helper K:
{
outer: K.ATTR({ status: "1" }, {
inner: K.ITEM("s32", 1)
})
}
Or follow xml-like format manually:
{
outer: {
"@attr": { status: "1" },
inner: {
"@attr": { __type: "s32" },
"@content": [1]
}
}
}
xml-like formatted javascript object
Response options. See: EamuseSendOption
Send xml data using pug template system.
pug string as the template
Render template with specified data, pass null or undefined to render static xml
Response options. See: EamuseSendOption
Render and send pug template from a file
Filename of the template
Render template with specified data, pass null or undefined to render static xml
Response options. See: EamuseSendOption
Send empty response with custom status code
Send empty response with status code 0
Send xml data using ejs template system.
xml string as the template
Render template with specified data, pass null or undefined to render static xml
Response options. See: EamuseSendOption
Render and send ejs template from a file
Filename of the template
Render template with specified data, pass null or undefined to render static xml
Response options. See: EamuseSendOption
Generated using TypeDoc
Send empty response with status code 1