def constant_app(status, headers, body):
 def application(unused_environ, start_response):
  start_response(status, headers)
  return [body]
 return application

def constant_app ( status , headers , body ) : def application ( unused_environ , start_response ) : start_response ( status , headers ) return [ body ] return application
creates a wsgi application that produces a constant response .