← expressjs/express

CODEFOSSIL · express

res.set

method in lib/response.js:669 · Born 2011-08-10 (DERIVED, confidence 1.00)

15years old
16changes
3fixes
7authors
18callers
2012201320142015201620172018201920202021202220232024202520262011-08-10 c8c6aa2 Added `res.get(field)` as an alternative to `res.header(field)`2011-10-05 021655a Added support for `res.set(obj)`. Closes #8342012-04-16 5fa2f89 Added `res.header()` and `req.header()` aliases for BC2012-04-26 67ddb42 Added: coerce `res.set()` values to strings2012-12-06 6f6eec7 add 'etag' option2012-12-06 9bd86cd Revert "add 'etag' option"2013-01-13 bb29da5 refactor vhost example2013-01-14 ab75fa0 refactor vhost example2013-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-08-10 19a1a22 Added `res.set(field, val)` as an alternative to `res.header()`
Every commit that changed it, 2011-08-10 – 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 refactor vhost example

    ab75fa0 · TJ Holowaychuk

  10. Changed refactor vhost example

    bb29da5 · TJ Holowaychuk

  11. Changed Revert "add 'etag' option"

    9bd86cd · TJ Holowaychuk fix · INFERRED

  12. Changed add 'etag' option

    6f6eec7 · Max Riveiro

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

    67ddb42 · TJ Holowaychuk

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

    5fa2f89 · TJ Holowaychuk

  15. Changed Added support for `res.set(obj)`. Closes #834

    021655a · Tj Holowaychuk

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

    c8c6aa2 · Tj Holowaychuk

  17. Born Added `res.set(field, val)` as an alternative to `res.header()`

    19a1a22 · Tj Holowaychuk