ScavXpCounts/types/routers/HttpRouter.d.ts

16 lines
741 B
TypeScript
Raw Normal View History

2024-02-23 15:06:00 -07:00
import { IncomingMessage } from "node:http";
2024-11-12 11:51:30 -07:00
import { DynamicRouter, Router, StaticRouter } from "@spt/di/Router";
2023-08-17 19:49:16 -06:00
export declare class HttpRouter {
protected staticRouters: StaticRouter[];
protected dynamicRoutes: DynamicRouter[];
constructor(staticRouters: StaticRouter[], dynamicRoutes: DynamicRouter[]);
protected groupBy<T>(list: T[], keyGetter: (t: T) => string): Map<string, T[]>;
2024-11-12 11:51:30 -07:00
getResponse(req: IncomingMessage, info: any, sessionID: string): Promise<string>;
protected handleRoute(url: string, info: any, sessionID: string, wrapper: ResponseWrapper, routers: Router[], dynamic: boolean): Promise<boolean>;
2023-08-17 19:49:16 -06:00
}
declare class ResponseWrapper {
output: string;
constructor(output: string);
}
export {};