Home / Function/ shouldNotHaveHeader() — express Function Reference

shouldNotHaveHeader() — express Function Reference

Architecture documentation for the shouldNotHaveHeader() function in utils.js from the express codebase.

Entity Profile

Dependency Diagram

graph TD
  1019bb10_c208_fdbd_55a0_7931537d0a78["shouldNotHaveHeader()"]
  fc2792b2_27a7_f93a_e2de_fb2632c81d42["utils.js"]
  1019bb10_c208_fdbd_55a0_7931537d0a78 -->|defined in| fc2792b2_27a7_f93a_e2de_fb2632c81d42
  style 1019bb10_c208_fdbd_55a0_7931537d0a78 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

test/support/utils.js lines 69–73

function shouldNotHaveHeader(header) {
  return function (res) {
    assert.ok(!(header.toLowerCase() in res.headers), 'should not have header ' + header);
  };
}

Domain

Subdomains

Frequently Asked Questions

What does shouldNotHaveHeader() do?
shouldNotHaveHeader() is a function in the express codebase, defined in test/support/utils.js.
Where is shouldNotHaveHeader() defined?
shouldNotHaveHeader() is defined in test/support/utils.js at line 69.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free