the response object inherits from http.ServerResponse
set response status code
set response content type
set response header
set Cache-Control header in seconds
compress the response with gzip and set Content-Encoding header to gzip
redirect the request to new path
sets cookie name to value. The value parameter may be a string or object converted to JSON.
clears the cookie specified by name.
add Cache-Control header
sends a JSON response.
Sends a JSON response with JSONP support. This method is identical to res.json(), except that it opts-in to JSONP callback support
send data response