def application(environ, start_response): status = '200 OK' output = environ['REQUEST_URI'].encode('UTF-8') response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))] start_response(status, response_headers) return [output]