Output.serveFile

bool serveFile(OnFileServed action = OnFileServed.KeepFile)(const string path, bool guessMime = true)

Serve a file from disk. If you want to delete the file after serving it, use serveFile!(OnFileServed.deleteFile).

// Serve a file from disk
output.serveFile("path/to/file.html");