flask.Response.calculate_content_length

Response.calculate_content_length()

Returns the content length if available or None otherwise.