res.get()

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

Usage

res.get(header);

Example

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

Notes

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