Home / Function/ addEcho() — fastify Function Reference

addEcho() — fastify Function Reference

Architecture documentation for the addEcho() function in custom-http-methods.test.js from the fastify codebase.

Entity Profile

Dependency Diagram

graph TD
  fe6b2d7c_d10f_68f4_b611_0bbb3888704a["addEcho()"]
  c3ce9afd_b1d6_9c1a_827d_c2041250e99b["custom-http-methods.test.js"]
  fe6b2d7c_d10f_68f4_b611_0bbb3888704a -->|defined in| c3ce9afd_b1d6_9c1a_827d_c2041250e99b
  style fe6b2d7c_d10f_68f4_b611_0bbb3888704a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

test/http-methods/custom-http-methods.test.js lines 7–15

function addEcho (fastify, method) {
  fastify.route({
    method,
    url: '/',
    handler: function (req, reply) {
      reply.send(req.body)
    }
  })
}

Domain

Subdomains

Frequently Asked Questions

What does addEcho() do?
addEcho() is a function in the fastify codebase, defined in test/http-methods/custom-http-methods.test.js.
Where is addEcho() defined?
addEcho() is defined in test/http-methods/custom-http-methods.test.js at line 7.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free