'Return headers in format appropriate for WSGI `start_response`'

def wsgi_headeritems(self):

    result = self.headers.headeritems()
    for (name, crumb) in self.cookies.items():
        (header, value) = str(crumb).split(':    ', 1)
        result.append((header, value))
    return result
