Constructors
constructor
- new WebResponse(_response: express.Response): WebResponse
-
Parameters
-
_response: express.Response
Methods
cookie
- cookie(name: string, value: string, options?: akera.ICookieOptions): akera.IWebResponse
-
Parameters
-
name: string
-
value: string
-
Optional options: akera.ICookieOptions
Returns akera.IWebResponse
end
- end(data: string | Buffer): akera.IWebResponse
-
Parameters
Returns akera.IWebResponse
send
- send(data: string | Buffer): akera.IWebResponse
-
Parameters
Returns akera.IWebResponse
setHeader
- setHeader(name: any, value: any): akera.IWebResponse
-
Parameters
Returns akera.IWebResponse
status
- status(code: number): akera.IWebResponse
-
Parameters
Returns akera.IWebResponse
Web Handler implementation of the @akera/api IWebResponse interface it's just a wrapper on top of an express.Response.