contentLength property

int get contentLength

Content length of the response or -1 if not specified

Implementation

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