autoCompress property - HttpServer class - dart:io library (original) (raw)

description

bool autoCompress

getter/setter pair

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 gzipas an accepted encoding in the Accept-Encoding header.

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

Implementation

bool autoCompress = false;