/** * just a definition use for inject */ import { FastifyRequest, Logger } from 'fastify'; import { IncomingMessage } from 'http'; import { Http2ServerRequest } from 'http2'; export class HttpRequest implements FastifyRequest { body: Record; headers: Record; hostname: string; id: any; ip: string; ips: string[]; log: Logger; params: Record; query: Record; raw: IncomingMessage; req: IncomingMessage; } export class Http2Request implements FastifyRequest { body: Record; headers: Record; hostname: string; id: any; ip: string; ips: string[]; log: Logger; params: Record; query: Record; raw: Http2ServerRequest; req: Http2ServerRequest; }