← expressjs/express

CODEFOSSIL · express

res.header

method in lib/response.js:670 · Born 2011-02-04 (DERIVED, confidence 1.00)

15years old
14changes
2fixes
6authors
3callers
2012201320142015201620172018201920202021202220232024202520262011-03-01 5052128 utilizing nodes progressive response header api2011-07-15 41568b7 chainable `res.header()`2011-08-04 54d3751 Refactored `res.header()`2011-08-10 c8c6aa2 Added `res.get(field)` as an alternative to `res.header(field)`2012-04-16 5fa2f89 Added `res.header()` and `req.header()` aliases for BC2012-04-26 67ddb42 Added: coerce `res.set()` values to strings2013-01-23 4031aaa Allow setting an array of header values in the response2013-01-24 a4b2e48 refactor res.set() array support2014-03-08 bad55f7 move setHeader charset patch to .set2014-04-24 1536a21 preserve casing of headers in res.header and res.set2014-07-11 c6e6203 perf: fix arguments reassign deopt in some res methods2015-06-20 bb53b20 perf: remove argument reassignments in response prototype2017-05-15 ae0b630 Fix error when res.set cannot add charset to Content-Type2022-02-06 a0276c6 Use mime-types for file to content type mapping2011-02-04 99820e7 Refactored req/res proto assignments
Every commit that changed it, 2011-02-04 – 2022-02-06. Raised orange dots are fixes.
  1. Changed Use mime-types for file to content type mapping

    a0276c6 · Douglas Christopher Wilson

  2. Changed Fix error when res.set cannot add charset to Content-Type

    ae0b630 · Oz Michaeli fix · INFERRED

  3. Changed perf: remove argument reassignments in response prototype

    bb53b20 · Douglas Christopher Wilson

  4. Changed perf: fix arguments reassign deopt in some res methods

    c6e6203 · Douglas Christopher Wilson fix · INFERRED

  5. Changed preserve casing of headers in res.header and res.set

    1536a21 · Douglas Christopher Wilson

  6. Changed move setHeader charset patch to .set

    bad55f7 · Jonathan Ong

  7. Changed refactor res.set() array support

    a4b2e48 · TJ Holowaychuk

  8. Changed Allow setting an array of header values in the response

    4031aaa · Greg Methvin

  9. Changed Added: coerce `res.set()` values to strings

    67ddb42 · TJ Holowaychuk

  10. Changed Added `res.header()` and `req.header()` aliases for BC

    5fa2f89 · TJ Holowaychuk

  11. Changed Added `res.get(field)` as an alternative to `res.header(field)`

    c8c6aa2 · Tj Holowaychuk

  12. Changed Refactored `res.header()`

    54d3751 · Tj Holowaychuk

  13. Changed chainable `res.header()`

    41568b7 · Tj Holowaychuk

  14. Changed utilizing nodes progressive response header api

    5052128 · Tj Holowaychuk

  15. Born Refactored req/res proto assignments

    99820e7 · Tj Holowaychuk