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

Function Hooks

lib/hooks.js:40–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38} = require('./symbols')
39
40function Hooks () {
41 this.onRequest = []
42 this.preParsing = []
43 this.preValidation = []
44 this.preSerialization = []
45 this.preHandler = []
46 this.onResponse = []
47 this.onSend = []
48 this.onError = []
49 this.onRoute = []
50 this.onRegister = []
51 this.onReady = []
52 this.onListen = []
53 this.onTimeout = []
54 this.onRequestAbort = []
55 this.preClose = []
56}
57
58Hooks.prototype = Object.create(null)
59

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected