HTTPFileServerSettings

Configuration options for the static file server.

Constructors

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

Members

Variables

cache
FileServerCache cache;

File cache

maxAge
Duration maxAge;

Maximum cache age to report to the client (24 hours 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