'Calculates the size of the headers.
Args:
headers: A dict of header values.
Returns:
the size of the headers.'

def _CalculateHeaderSize(self, headers):

    return sum([len(('%s:    %s\n' % (key, value))) for (key, value) in headers.iteritems()])
