vibe.d beta banner
get vibe.d
0.7.31

Class HTTPFileServerSettings

Configuration options for the static file server.

class HTTPFileServerSettings;

Constructors

Constructors

NameDescription
this
this

Fields

Fields

NameTypeDescription
encodingFileExtensionstring[string]Maps from encoding scheme (e.g. "gzip") to file extension.
maxAgecore.time.DurationMaximum cache age to report to the client (24 hours by default)
optionsHTTPFileServerOptionGeneral options
preWriteCallbackvoid delegate(scope HTTPServerRequest, scope HTTPServerResponse, ref string)Called just before headers and data are sent. Allows headers to be customized, or other custom processing to be performed.
serverPathPrefixstringPrefix of the request path to strip before looking up files
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.