vibe.http.fileserver

A static HTTP file server.

Members

Classes

HTTPFileServerSettings
class HTTPFileServerSettings

Configuration options for the static file server.

Enums

HTTPFileServerOption
enum HTTPFileServerOption

Additional options for the static file server.

Functions

sendFile
void sendFile(HTTPServerRequest req, HTTPServerResponse res, NativePath path, HTTPFileServerSettings settings)

Sends a file to the given HTTP server response object.

serveStaticFile
HTTPServerRequestDelegateS serveStaticFile(NativePath local_path, HTTPFileServerSettings settings)
HTTPServerRequestDelegateS serveStaticFile(string local_path, HTTPFileServerSettings settings)

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

serveStaticFiles
HTTPServerRequestDelegateS serveStaticFiles(NativePath local_path, HTTPFileServerSettings settings)
HTTPServerRequestDelegateS serveStaticFiles(string local_path, HTTPFileServerSettings settings)

Returns a request handler that serves files from the specified directory.

Meta

License

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

Authors

Sönke Ludwig