Precalculate the media type toString().
Track whether content length is set.