Home / Function/ hasHeader() — fastify Function Reference

hasHeader() — fastify Function Reference

Architecture documentation for the hasHeader() function in reply.js from the fastify codebase.

Entity Profile

Dependency Diagram

graph TD
  b4adc100_b7df_0cf8_ec54_d87e6507f168["hasHeader()"]
  4bcd71dc_1ec2_5fe8_b8ff_4a371e392925["reply.js"]
  b4adc100_b7df_0cf8_ec54_d87e6507f168 -->|defined in| 4bcd71dc_1ec2_5fe8_b8ff_4a371e392925
  style b4adc100_b7df_0cf8_ec54_d87e6507f168 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

lib/reply.js lines 228–232

Reply.prototype.hasHeader = function (key) {
  key = key.toLowerCase()

  return this[kReplyHeaders][key] !== undefined || this.raw.hasHeader(key)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does hasHeader() do?
hasHeader() is a function in the fastify codebase, defined in lib/reply.js.
Where is hasHeader() defined?
hasHeader() is defined in lib/reply.js at line 228.

Analyze Your Own Codebase

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

Try Supermodel Free