June 2014
Intermediate to advanced
696 pages
38h 52m
English
Express provides several application settings that control the behavior of the Express server. These settings define the environment as well as how Express handles JSON parsing, routing, and views. Table 18.1 lists the settings that can be defined on an express object.
Table 18.1 Express application settings
The express object provides the set(setting, value) and enable(setting) and disable(setting) methods to set values for the application settings. For example, the following lines of code enable the trust proxy setting and set view engine to jade:
app.enable('trust proxy');app.disable('strict ...
Read now
Unlock full access