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

Function handler

test/request-error.test.js:372–375  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

370 t.plan(3)
371 const fastify = Fastify()
372 const handler = function (req, res) {
373 t.assert.strictEqual('POST', req.routeOptions.method)
374 res.send({})
375 }
376
377 fastify.post('/', {
378 bodyLimit: 1000,

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected