buildOptionalHeaderReqId() — fastify Function Reference
Architecture documentation for the buildOptionalHeaderReqId() function in req-id-gen-factory.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD 6ce28c82_f505_bdd9_725d_5afc88222f48["buildOptionalHeaderReqId()"] a459b50d_6bda_52b1_6093_9868b8f762c9["req-id-gen-factory.js"] 6ce28c82_f505_bdd9_725d_5afc88222f48 -->|defined in| a459b50d_6bda_52b1_6093_9868b8f762c9 5d6bfca2_7a09_3a50_8649_149055835528["reqIdGenFactory()"] 5d6bfca2_7a09_3a50_8649_149055835528 -->|calls| 6ce28c82_f505_bdd9_725d_5afc88222f48 style 6ce28c82_f505_bdd9_725d_5afc88222f48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
lib/req-id-gen-factory.js lines 43–47
function buildOptionalHeaderReqId (requestIdHeader, genReqId) {
return function (req) {
return req.headers[requestIdHeader] || genReqId(req)
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does buildOptionalHeaderReqId() do?
buildOptionalHeaderReqId() is a function in the fastify codebase, defined in lib/req-id-gen-factory.js.
Where is buildOptionalHeaderReqId() defined?
buildOptionalHeaderReqId() is defined in lib/req-id-gen-factory.js at line 43.
What calls buildOptionalHeaderReqId()?
buildOptionalHeaderReqId() is called by 1 function(s): reqIdGenFactory.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free