ClearVision/types/helpers/HttpServerHelper.d.ts

33 lines
857 B
TypeScript
Raw Permalink Normal View History

2022-07-09 16:03:26 -04:00
import { IHttpConfig } from "../models/spt/config/IHttpConfig";
import { ConfigServer } from "../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;
2023-09-02 22:34:11 -04:00
/**
* Combine ip and port into url
* @returns url
*/
2022-07-09 16:03:26 -04:00
buildUrl(): string;
2023-09-02 22:34:11 -04:00
/**
* Prepend http to the url:port
* @returns URI
*/
2022-07-09 16:03:26 -04:00
getBackendUrl(): string;
2023-09-02 22:34:11 -04:00
/** Get websocket url + port */
2022-07-09 16:03:26 -04:00
getWebsocketUrl(): string;
sendTextJson(resp: any, output: any): void;
}