'Return this WSGIResponse as a tuple of WSGI formatted data, including:
(status, headers, iterable)'

def wsgi_response(self):

    status_text = STATUS_CODE_TEXT[self.status_code]
    status = ('%s    %s' % (self.status_code, status_text))
    response_headers = self.headers.headeritems()
    for c in self.cookies.values():
        response_headers.append(('Set-Cookie', c.output(header='')))
    return (status, response_headers, self.get_content())
