@jeaks03/overseer
Version:
Just another TypeScript Back-End framework
16 lines (15 loc) • 643 B
TypeScript
import { ServerResponse } from "http";
import { MimeFinder } from "../misc/mime-finder";
export declare class Resources {
private readonly basePath;
private mimeFinder;
private static readonly BASE_RELATIVE_RESOURCES_DIRECTORY;
private static readonly RESOURCES_RELATIVE_PUBLIC_DIRECTORY;
private resourceDirectory;
private publicDirectory;
constructor(basePath: string, mimeFinder: MimeFinder);
fileExists(relativePath: string): boolean;
fileOrIndexExists(relativePath: string): boolean;
readFile(relativePath: string): Promise<Buffer>;
handleRequest(baseUrl: string, res: ServerResponse): void;
}