res.json([body]) Sends a JSON response. This method is identical to res.send() with an object or array as the parameter. However
res.app This property holds a reference to the instance of the Express application that is using the middleware. res
res.end([data] [, encoding]) Ends the response process. This method actually comes from Node core, specifically the
res.render(view [, locals] [, callback]) Renders a view and sends the rendered HTML string to the client. Optional parameters:
res.redirect([status,] path) Redirects to the URL derived from the specified path, with specified status, a positive
res.links(links) Joins the links provided as properties of the parameter to populate the response’s Link HTTP header
res.headersSent Boolean property that indicates if the app sent HTTP headers for the response.
res.append(field [, value]) res.append() is supported by Express v4.11.0+
res.get(field) Returns the HTTP response header specified by field. The match is case-insensitive.
res.format(object) Performs content-negotiation on the Accept HTTP header on the request object, when present. It uses
Page 1 of 3