Skip to content

Response

Hugo Persson edited this page Dec 10, 2020 · 2 revisions

Response object


The response object is a property of the Controller and the object can be accessed by any class that extends Controller with:

this.res

The response object is used to return data to the user. The Response class extends the http.ServerResponse.

Methods

sendFile

download

getNodeResponseObject

json

render

setCookie

setStatusCode

Clone this wiki locally