acceptsGzipEncoding function

bool acceptsGzipEncoding(
  1. Request request
)

Returns true if the request accepts gzip encoding.

Implementation

bool acceptsGzipEncoding(Request request) {
  var acceptEncoding = request.headers[HttpHeaders.acceptEncodingHeader];
  return acceptEncoding?.contains('gzip') ?? false;
}