res.get()

Returns the current value of the specified response header (header).

Usage

  1. res.get(header);

Example

  1. res.get('Content-Type');
  2. // -> "text/plain"

Notes

  • The header argument is case-insensitive. +Response headers can be changed up until the response is sent - see res.set().