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

Function handler

test/body-limit.test.js:115–118  ·  view source on GitHub ↗
(request, reply)

Source from the content-addressed store, hash-verified

113 const fastify = Fastify()
114 fastify.post('/default-bodylimit', {
115 handler (request, reply) {
116 t.assert.strictEqual(1048576, request.routeOptions.bodyLimit)
117 reply.send({ })
118 }
119 })
120 const fastifyServer = await fastify.listen({ port: 0 })
121 t.after(() => { fastify.close() })

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected