res.location(path) Sets the response Location HTTP header to the specified path parameter.
app.set(name, value) Assigns setting name to value, where name is one of the properties from the app
When running an Express app behind a proxy, set (by using app.set()) the application variable trust proxy to one of the values listed in the following table.
res.type(type) Sets the Content-Type HTTP header to the MIME type as determined by
res.sendFile(path [, options] [, fn]) res.sendFile() is supported by Express v4.8.0 onwards
req.params This property is an object containing properties mapped to the named route “parameters”. For example, if you have the route
Routing refers to the definition of application end points (URIs) and how they respond to client requests. For an introduction to routing, see
Express is a routing and middleware web framework that has minimal functionality of its own: An Express application is essentially a series of middleware function calls.
app.put(path, callback [, callback ...]) Routes HTTP PUT requests to the specified path with the specified callback functions. For more information
req.hostname Contains the hostname derived from the Host HTTP header. When the trust proxy
Page 8 of 11