@darthcav/ts-http-server
    Preparing search index...

    Function preHandler

    • Fastify preHandler hook that logs incoming request details:

      Incoming request [{id}]: {method} {url} HTTP/{httpVersion} from {ip}
      

      Intended to be registered via:

      fastify.addHook("preHandler", preHandler)
      

      Uses request.log.debug so each log record is automatically correlated with the request ID assigned by Fastify.

      Parameters

      • request: FastifyRequest
      • _reply: FastifyReply

      Returns Promise<void>