vibe.d beta banner
get vibe.d

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.


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


© 2012-2017 RejectedSoftware e.K.


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