MCPcopy
hub / github.com/fastify/fastify / handler

Function handler

lib/handle-request.js:73–88  ·  view source on GitHub ↗
(request, reply)

Source from the content-addressed store, hash-verified

71}
72
73function handler (request, reply) {
74 try {
75 if (request[kRouteContext].preValidation !== null) {
76 preValidationHookRunner(
77 request[kRouteContext].preValidation,
78 request,
79 reply,
80 preValidationCallback
81 )
82 } else {
83 preValidationCallback(null, request, reply)
84 }
85 } catch (err) {
86 preValidationCallback(err, request, reply)
87 }
88}
89
90function preValidationCallback (err, request, reply) {
91 if (reply.sent === true) return

Callers 3

handleRequestFunction · 0.70
onDoneFunction · 0.70

Calls 1

preValidationCallbackFunction · 0.85

Tested by

no test coverage detected