HTTPFileServerSettings.encodingFileExtension

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

If a request accepts a supported encoding scheme, then the file server will look for a file with the extension as a suffix and, if that exists, sends it as the encoded representation instead of sending the original file.

class HTTPFileServerSettings
string[string] encodingFileExtension;

Examples

settings.encodingFileExtension["gzip"] = ".gz";

Meta