Function Output.serveFile

You can reply with a file. Automagical mime-type detection.

bool serveFile (
  const(string) path,
  bool guessMime = true
);