17 lines
758 B
TypeScript
Raw Normal View History

2023-06-11 15:10:34 +10:00
/// <reference types="node" />
2024-04-03 20:15:11 +11:00
import { IncomingMessage } from "node:http";
import { DynamicRouter, Router, StaticRouter } from "@spt-aki/di/Router";
2023-06-11 15:10:34 +10: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[]>;
getResponse(req: IncomingMessage, info: any, sessionID: string): string;
protected handleRoute(url: string, info: any, sessionID: string, wrapper: ResponseWrapper, routers: Router[], dynamic: boolean): boolean;
}
declare class ResponseWrapper {
output: string;
constructor(output: string);
}
export {};