Function serveStaticFile

Returns a request handler that serves a specific file on disk.

Prototypes

void delegate(HTTPServerRequest, HTTPServerResponse) serveStaticFile(
  Path local_path,
  HTTPFileServerSettings settings
);

void delegate(HTTPServerRequest, HTTPServerResponse) serveStaticFile(
  string local_path,
  HTTPFileServerSettings settings
);

See Also

serveStaticFiles

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.