import guv

guv.monkey_patch()
import guv.wsgi
import logger

logger.configure()


def app(environ, start_response):
    status = '200 OK'
    output = [b'Hello World!']
    content_length = str(len(b''.join(output)))

    response_headers = [('Content-type', 'text/plain'),
                        ('Content-Length', content_length)]

    start_response(status, response_headers)

    return output


if __name__ == '__main__':
    server_sock = guv.listen(('0.0.0.0', 8001))
    guv.wsgi.serve(server_sock, app)

@@ -4,17 +4,16 @@
 ort guv%0A
-%0A
 guv.monk
@@ -23,16 +23,17 @@
 patch()%0A
+%0A
 import g
@@ -76,16 +76,16 @@
 ure()%0A%0A%0A
-
 def app(
@@ -110,16 +110,279 @@
 ponse):%0A
+    %22%22%22%0A    This is very basic WSGI app useful for testing the performance of guv and guv.wsgi without%0A    the overhead of a framework such as Flask. However, it can just as easily be any other WSGI app%0A    callable object, such as a Flask or Bottle app.%0A    %22%22%22%0A
     stat

Add docstring to WSGI example