setsLength property

bool get setsLength

true when a response may set its content length: the server does not gzip (a server gzips only when no length is set). listen sets it from the server, so the autoCompress of a binder counts too. Before that (a unit test): from compress of the config.

Implementation

static bool get setsLength => _setsLength ?? !Dox().config.compress;