vibe.d beta banner
get vibe.d
0.9.0

Asynchronous I/O that doesn’t get in your way, written in D

Class HTTPFileServerSettings

Configuration options for the static file server.

class HTTPFileServerSettings ;

Constructors

NameDescription
this ()
this (path_prefix)

Fields

NameTypeDescription
cacheControl stringCache control to control where cache can be saved, if at all, such as proxies, the storage, etc.
encodingFileExtension string[string]Maps from encoding scheme (e.g. "gzip") to file extension.
maxAge core.time.DurationMaximum cache age to report to the client (zero by default)
options HTTPFileServerOptionGeneral options
preWriteCallback @safe 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 stringPrefix of the request path to strip before looking up files
Authors

Sönke Ludwig

Copyright

© 2012-2015 Sönke Ludwig

License

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