responseSize property
int?
get
responseSize
Parses content length from headers, if available.
Implementation
int? get responseSize {
final contentLength =
getHeader('content-length') ?? getHeader('Content-Length');
return contentLength != null ? int.tryParse(contentLength) : null;
}