autoCompress property

  1. @override
bool get autoCompress
override

Whether the HttpServer should compress the content, if possible.

The content can only be compressed when the response is using chunked Transfer-Encoding and the incoming request has gzip as an accepted encoding in the Accept-Encoding header.

The default value is false (compression disabled). To enable, set autoCompress to true.

Implementation

@override
bool get autoCompress => httpServer.autoCompress;
  1. @override
set autoCompress (bool value)
override

Whether the HttpServer should compress the content, if possible.

The content can only be compressed when the response is using chunked Transfer-Encoding and the incoming request has gzip as an accepted encoding in the Accept-Encoding header.

The default value is false (compression disabled). To enable, set autoCompress to true.

Implementation

@override
set autoCompress(bool value) => httpServer.autoCompress = value;