contentLength property

int get contentLength

Content length of the response or -1 if not specified

Implementation

int get contentLength =>
    int.parse(headers.value(Headers.contentLengthHeader) ?? '-1');