addContentLength method
void
addContentLength()
Computes the byte length of the current entity's serialized MIME body and
adds or updates its Content-Length header. The count is based on the
transfer-encoded serialized body, not the decoded payload.
For a multipart entity, the count includes boundary delimiter lines, child
headers, child bodies, and the closing boundary. Only the current entity's
header is updated; child parts do not receive Content-Length fields.
Repeated calls recompute the value and leave a single header occurrence.
Implementation
void addContentLength() {
final h = _handle;
_CkMime_AddContentLength(h);
}