MCPcopy
hub / github.com/fastify/fastify / echoBody

Function echoBody

test/validation-error-handling.test.js:18–20  ·  view source on GitHub ↗
(req, reply)

Source from the content-addressed store, hash-verified

16}
17
18function echoBody (req, reply) {
19 reply.code(200).send(req.body.name)
20}
21
22test('should work with valid payload', async (t) => {
23 t.plan(2)

Callers

nothing calls this directly

Calls 2

sendMethod · 0.80
codeMethod · 0.80

Tested by

no test coverage detected