acceptsGzipEncoding function
Returns true
if the request accepts gzip
encoding.
Implementation
bool acceptsGzipEncoding(Request request) {
var acceptEncoding = request.headers[HttpHeaders.acceptEncodingHeader];
return acceptEncoding?.contains('gzip') ?? false;
}