Glossary: Building APIs with Node.js
Hook, preHandler
Also written: hook, preHandler
A hook is a function Fastify runs at a fixed point in handling a request. A `preHandler` runs just before the handler and can stop the request by throwing.
Glossary: Building APIs with Node.js
Also written: hook, preHandler
A hook is a function Fastify runs at a fixed point in handling a request. A `preHandler` runs just before the handler and can stop the request by throwing.