MCPcopy Create free account
hub / github.com/fastify/fastify / assertsRequestDecoration

Function assertsRequestDecoration

lib/request.js:152–156  ·  view source on GitHub ↗
(request, name)

Source from the content-addressed store, hash-verified

150}
151
152function assertsRequestDecoration (request, name) {
153 if (!decorators.hasKey(request, name) && !decorators.exist(request, name)) {
154 throw new FST_ERR_DEC_UNDECLARED(name, 'request')
155 }
156}
157
158Object.defineProperties(Request.prototype, {
159 server: {

Callers 1

request.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected