contentLength property
Gets the content length of the request. If the size of the request is not known in advance, the content length should be null.
Implementation
@override
int? get contentLength => _contentLength;
Sets the content length of the request body. This is only supported in streamed requests since the body may be sent asynchronously after the headers have been sent.
Implementation
@override
set contentLength(int? value) {
verifyUnsent();
_contentLength = value;
}