Skip to content

Commit 4c5106c

Browse files
committed
Adds simple WSGI app example
1 parent 882fe79 commit 4c5106c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

wsgi_example.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import fastwsgi
2+
3+
def app(environ, start_response):
4+
headers = [('Content-Type', 'text/plain')]
5+
start_response('200 OK', headers)
6+
return [b'Hello, World!']
7+
8+
if __name__ == '__main__':
9+
fastwsgi.run(wsgi_app=app, host='0.0.0.0', port=5000)

0 commit comments

Comments
 (0)