':return: a str representation of the headers.'

def dump_headers(self):

    if self.headers:
        return (CRLF.join((((h + ':    ') + hv) for (h, hv) in self.headers.items())) + CRLF)
    else:
        return ''
