- serveStatic(_: IncomingMessage, res: ServerResponse, filePath: string, defaultPath?: string, defaultCode?: number): Promise<void>
-
Parameters
-
_: IncomingMessage
-
res: ServerResponse
-
filePath: string
-
Optional defaultPath: string
-
Optional defaultCode: number
Returns Promise<void>
Method for serving the static file at filePath to a client