Initial release for SPT 3.9
This commit is contained in:
32
types/helpers/HttpServerHelper.d.ts
vendored
Normal file
32
types/helpers/HttpServerHelper.d.ts
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import { IHttpConfig } from "@spt/models/spt/config/IHttpConfig";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
export declare class HttpServerHelper {
|
||||
protected configServer: ConfigServer;
|
||||
protected httpConfig: IHttpConfig;
|
||||
protected mime: {
|
||||
css: string;
|
||||
bin: string;
|
||||
html: string;
|
||||
jpg: string;
|
||||
js: string;
|
||||
json: string;
|
||||
png: string;
|
||||
svg: string;
|
||||
txt: string;
|
||||
};
|
||||
constructor(configServer: ConfigServer);
|
||||
getMimeText(key: string): string;
|
||||
/**
|
||||
* Combine ip and port into address
|
||||
* @returns url
|
||||
*/
|
||||
buildUrl(): string;
|
||||
/**
|
||||
* Prepend http to the url:port
|
||||
* @returns URI
|
||||
*/
|
||||
getBackendUrl(): string;
|
||||
/** Get websocket url + port */
|
||||
getWebsocketUrl(): string;
|
||||
sendTextJson(resp: any, output: any): void;
|
||||
}
|
||||
Reference in New Issue
Block a user