UNPKG

@chubbyts/chubbyts-http-static-file

Version:

A minimal static file handler for chubbyts-http-types.

5 lines (4 loc) 444 B
import type { Handler } from '@chubbyts/chubbyts-http-types/dist/handler'; import type { ResponseFactory, StreamFromFileFactory } from '@chubbyts/chubbyts-http-types/dist/message-factory'; export type MimeTypes = Map<string, string>; export declare const createStaticFileHandler: (responseFactory: ResponseFactory, streamFromFileFactory: StreamFromFileFactory, publicDirectory: string, mimeTypes: MimeTypes, hashAlgorithm?: string) => Handler;