Function serveFile
- serve
File (req, filePath, options?): Promise<Response> Parameters
- req: Request
The server request context used to cleanup the file handle.
- filePath: string
Path of the file to serve.
Optionaloptions: ServeFileOptionsAdditional options.
Returns Promise<Response>
A response for the request.
- req: Request
Resolves a Response with the requested file as the body.