contentLength property

int? contentLength
inherited

The contents of the content-length field in headers.

If not set, null.

Implementation

int? get contentLength {
  if (_contentLengthCache != null) return _contentLengthCache;
  if (!headers.containsKey('content-length')) return null;
  _contentLengthCache = int.parse(headers['content-length']!);
  return _contentLengthCache;
}