Initial release for SPT 3.9
This commit is contained in:
16
types/routers/HttpRouter.d.ts
vendored
Normal file
16
types/routers/HttpRouter.d.ts
vendored
Normal 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 {};
|
||||
Reference in New Issue
Block a user