uncompressedContentLength function
Returns the uncompressed body length of response: the
uncompressedLengthContextKey if compressed by compressResponse,
otherwise its Response.contentLength.
Implementation
int? uncompressedContentLength(Response response) {
var length = response.context[uncompressedLengthContextKey];
return length is int ? length : response.contentLength;
}