def METHOD_NAME(self):
    """
    Returns the size of the body data wrapped by this class. For
    multipart encoding, this is the size of the part. For sending
    as the body, this is the Content-Length header.
    """
    if self.size is not None:
        return self.size
    return int(cherrypy.request.headers['Content-Length'])