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

Function customParser

test/custom-parser.0.test.js:83–87  ·  view source on GitHub ↗
(req, payload, done)

Source from the content-addressed store, hash-verified

81 })
82
83 function customParser (req, payload, done) {
84 jsonParser(payload, function (err, body) {
85 done(err, body)
86 })
87 }
88
89 fastify.addContentTypeParser('application/jsoff', customParser)
90 fastify.addContentTypeParser('application/ffosj', customParser)

Callers

nothing calls this directly

Calls 1

doneFunction · 0.50

Tested by

no test coverage detected