vibe.d beta banner
get vibe.d
0.7.31

Module vibe.http.fileserver

A static HTTP file server.

Functions

NameDescription
sendFile(req, res, path, settings)Sends a file to the given HTTP server response object.
serveStaticFile(local_path, settings)Returns a request handler that serves a specific file on disk.
serveStaticFiles(local_path, settings)Returns a request handler that serves files from the specified directory.

Classes

NameDescription
HTTPFileServerSettingsConfiguration options for the static file server.

Enums

NameDescription
HTTPFileServerOptionAdditional options for the static file server.
Authors

Sönke Ludwig

Copyright

© 2012-2015 RejectedSoftware e.K.

License

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