'Calculates the response size.
May be overriden to support different types of response.
Args:
res: A tuple of (header map, response body).
Returns:
the size of the response, in bytes.'

def _CalculateResponseSize(self, res):

    (headers, content) = res
    return (len(content) + self._CalculateHeaderSize(headers))
