'A base wsgi application that returns a simple response.'

def _application(self):

    def app(environ, start_response):
        body = uuid.uuid4().hex.encode('utf-8')
        resp_headers = [('Content-Type', 'text/html;    charset=utf8'), ('Content-Length', str(len(body)))]
        start_response('200    OK', resp_headers)
        return [body]
    return app
