Initial release for SPT 3.9

This commit is contained in:
2024-07-20 18:08:38 +02:00
parent 7df25ba694
commit c83da69a3e
713 changed files with 34110 additions and 1 deletions

16
types/routers/HttpRouter.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
/// <reference types="node" />
import { IncomingMessage } from "node:http";
import { DynamicRouter, Router, StaticRouter } from "@spt/di/Router";
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): Promise<string>;
protected handleRoute(url: string, info: any, sessionID: string, wrapper: ResponseWrapper, routers: Router[], dynamic: boolean): Promise<boolean>;
}
declare class ResponseWrapper {
output: string;
constructor(output: string);
}
export {};