res.render(view [, locals] [, callback]) Renders a view and sends the rendered HTML string to the client. Optional parameters:
req.app This property holds a reference to the instance of the Express application that is using the middleware. If
app.engine(ext, callback) Registers the given template engine callback as ext. By
app.enable(name) Sets the Boolean setting name to true, where name is one of the properties from the
req.fresh Indicates whether the request is “fresh.” It is the opposite of req.stale. It is true
app.get(name) Returns the value of name app setting, where name is one of strings in the app settings table. For example:
res.jsonp([body]) Sends a JSON response with JSONP support. This method is identical to res.json(), except that it opts-in to JSONP
req.method Contains a string corresponding to the HTTP method of the request: GET, POST, PUT, and so
res.locals An object that contains response local variables scoped to the request, and therefore available only to the view(s) rendered during
req.protocol Contains the request protocol string: either http or (for TLS requests) https. When
Page 5 of 11