You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* official docs at http://expressjs.com/en/api.html#res
*/
class ExpressResponse {
/**
* Sets the HTTP status for the response.
*/
status(code) {
this.code = code;
}
/**
* Sets the response’s HTTP header
*/
header(headers) {
this.headers = headers;
}
/**
* Sends a JSON response. This method sends a response (with the correct content-type) that is the parameter converted to a JSON string using JSON.stringify().