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