uncompressedContentLength function

int? uncompressedContentLength(
  1. Response response
)

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;
}