'Return a string suitable for HTTP.'

def output(self, attrs=None, header='Set-Cookie:', sep='\r\n'):

    result = []
    items = sorted(self.items())
    for (key, value) in items:
        result.append(value.output(attrs, header))
    return sep.join(result)
