← expressjs/express

CODEFOSSIL · express

res.contentType

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

15years old
6changes
0fixes
3authors
1caller
2012201320142015201620172018201920202021202220232024202520262011-02-23 d37ad85 replaced connect.utils.mime() with mime module2011-09-28 54c1a20 Added res.type() alias of res.contentType()2012-02-07 c44f018 utilize `res.set()` internally2012-04-10 24a4e95 Changed to allow extname or type/subtype only. Closes #10722015-06-20 bb53b20 perf: remove argument reassignments in response prototype2022-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 perf: remove argument reassignments in response prototype

    bb53b20 · Douglas Christopher Wilson

  3. Changed Changed to allow extname or type/subtype only. Closes #1072

    24a4e95 · TJ Holowaychuk

  4. Changed utilize `res.set()` internally

    c44f018 · TJ Holowaychuk

  5. Changed Added res.type() alias of res.contentType()

    54c1a20 · Tj Holowaychuk

  6. Changed replaced connect.utils.mime() with mime module

    d37ad85 · Tj Holowaychuk

  7. Born Refactored req/res proto assignments

    99820e7 · Tj Holowaychuk