contentLength property

int contentLength

Content length of the response or -1 if not specified

Implementation

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