Class HTTPFileServerSettings
Configuration options for the static file server.
class HTTPFileServerSettings
;
Constructors
Name | Description |
---|---|
this
()
|
|
this
(path_prefix)
|
Fields
Name | Type | Description |
---|---|---|
encodingFileExtension
|
string[string] | Maps from encoding scheme (e.g. "gzip") to file extension. |
maxAge
|
core | Maximum cache age to report to the client (24 hours by default) |
options
|
HTTPFileServerOption | General options |
preWriteCallback
|
void delegate(scope HTTPServerRequest, HTTPServerResponse, ref string) | Called just before headers and data are sent. Allows headers to be customized, or other custom processing to be performed. |
serverPathPrefix
|
string | Prefix of the request path to strip before looking up files |