vibe.d beta banner
get vibe.d
0.7.30

Variable HTTPServerSettings.useCompressionIfPossible

Responds to "Accept-Encoding" by using compression if possible.

Compression can also be manually enabled by setting the "Content-Encoding" header of the HTTP response appropriately before sending the response body.

This setting is disabled by default. Also note that there are still some known issues with the GZIP compression code.

Declaration

class HTTPServerSettings
{
  // ...
  bool useCompressionIfPossible = false;
  // ...
}
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License