Module "middleware/serveStatic"
Functions
Private collapseLeadingSlashes
- collapseLeadingSlashes(str: string): string
-
Parameters
Returns string
Private createHtmlDocument
- createHtmlDocument(title: string, body: string): string
-
Parameters
-
title: string
-
body: string
Returns string
Private createNotFoundDirectoryListener
-
Parameters
Returns Function
Private createRedirectDirectoryListener
-
Parameters
Returns Function
serveStatic
- serveStatic(root: string, options?: any): Handler
-
Parameters
-
root: string
-
Default value options: any = {}
Collapse all leading slashes into a single slash