vibe.d beta banner
get vibe.d
0.10.1

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

Variable HTTPServerSettings.useCompressionIfPossible

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

class HTTPServerSettings
{
  // ...
  bool useCompressionIfPossible = false;
  // ...
}

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.

Authors

Sönke Ludwig, Jan Krüger, Ilya Shipunov

Copyright

© 2012-2017 Sönke Ludwig

License

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