MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / requestIdHook

Function requestIdHook

apps/api/src/hooks/request-id.hook.ts:7–11  ·  view source on GitHub ↗
(request: FastifyRequest)

Source from the content-addressed store, hash-verified

5} from 'fastify';
6
7export async function requestIdHook(request: FastifyRequest) {
8 if (!request.headers['request-id']) {
9 request.headers['request-id'] = request.id;
10 }
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected