MCPcopy
hub / github.com/fastify/fastify / runPreParsing

Function runPreParsing

lib/route.js:652–667  ·  lib/route.js::runPreParsing
(err, request, reply)

Source from the content-addressed store, hash-verified

650}
651
652function runPreParsing (err, request, reply) {
653 if (reply.sent === true) return
654 if (err != null) {
655 reply[kReplyIsError] = true
656 reply.send(err)
657 return
658 }
659
660 request[kRequestPayloadStream] = request.raw
661
662 if (request[kRouteContext].preParsing !== null) {
663 preParsingHookRunner(request[kRouteContext].preParsing, request, reply, handleRequest.bind(request.server))
664 } else {
665 handleRequest.call(request.server, null, request, reply)
666 }
667}
668
669function buildRouterOptions (options, defaultOptions) {
670 const routerOptions = options.routerOptions == null

Callers 1

routeHandlerFunction · 0.85

Calls 2

preParsingHookRunnerFunction · 0.85
sendMethod · 0.80

Tested by

no test coverage detected