MCPcopy
hub / github.com/fastify/fastify / assertsRequestDecoration

Function assertsRequestDecoration

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

Source from the content-addressed store, hash-verified

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

Callers 1

request.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected