MCPcopy
hub / github.com/fastify/fastify / setGenReqId

Function setGenReqId

fastify.js:821–826  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

819 }
820
821 function setGenReqId (func) {
822 throwIfAlreadyStarted('Cannot call "setGenReqId"!')
823
824 this[kGenReqId] = reqIdGenFactory(this[kOptions].requestIdHeader, func)
825 return this
826 }
827
828 function addHttpMethod (method, { hasBody = false } = {}) {
829 if (typeof method !== 'string' || http.METHODS.indexOf(method) === -1) {

Callers

nothing calls this directly

Calls 2

throwIfAlreadyStartedFunction · 0.85
reqIdGenFactoryFunction · 0.85

Tested by

no test coverage detected