Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • request - the HTTP request object, which can be read to conditionally change headers.

  • response - the HTTP response object before it gets sent to the client.

The module is loaded upon server startup and cached like any Node.js module.

Example 1

config.js setting:

...