HTTPFileServerSettings

Configuration options for the static file server.

Constructors

this
this()
Undocumented in source.
this
this(string path_prefix)
Undocumented in source.

Members

Variables

cacheControl
string cacheControl;

Cache control to control where cache can be saved, if at all, such as proxies, the storage, etc.

encodingFileExtension
string[string] encodingFileExtension;

Maps from encoding scheme (e.g. "gzip") to file extension.

maxAge
Duration maxAge;

Maximum cache age to report to the client (zero by default)

options
HTTPFileServerOption options;

General options +//// additional option

preWriteCallback
void delegate(scope HTTPServerRequest req, scope HTTPServerResponse res, ref string physicalPath) preWriteCallback;

Called just before headers and data are sent. Allows headers to be customized, or other custom processing to be performed.

serverPathPrefix
string serverPathPrefix;

Prefix of the request path to strip before looking up files

Meta