WebResponse interface
Minimal response interface describing the methods used by the Agent request handler. Any framework whose response object satisfies this shape is compatible.
Properties
| headers |
|
| writable |
Property Details
headersSent
headersSent: boolean
Property Value
boolean
writableEnded
writableEnded: boolean
Property Value
boolean
Method Details
end()
send(unknown)
setHeader(string, string)
function setHeader(name: string, value: string): WebResponse
Parameters
- name
-
string
- value
-
string