contentLength property

  1. @override
int get contentLength
override

The ContentType of the contentTypeHeader header, if any. The value of the contentLengthHeader header, if any.

The value is negative if there is no content length set.

Implementation

@override
int get contentLength => _headers.contentLength;
  1. @override
set contentLength (int contentLength)
override

The ContentType of the contentTypeHeader header, if any. The value of the contentLengthHeader header, if any.

The value is negative if there is no content length set.

Implementation

@override
set contentLength(int contentLength) {
  _headers.contentLength = contentLength;
}