mirror of
https://github.com/jamesroberts/fastwsgi.git
synced 2025-12-20 05:39:31 -06:00
Add example
This commit is contained in:
@@ -12,6 +12,8 @@ It is mostly written in C. It makes use of [libuv](https://github.com/libuv/libu
|
||||
|
||||
## Example usage with Flask
|
||||
|
||||
See [example.py](https://github.com/jamesroberts/fast-wsgi/blob/main/testapp.py) for more details.
|
||||
|
||||
```python
|
||||
import fast_wsgi
|
||||
from flask import Flask
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import fast_wsgi
|
||||
import bjoern
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
@@ -11,5 +10,4 @@ def hello_world():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# fast_wsgi.run(wsgi_app=app, host="0.0.0.0", port=5000)
|
||||
bjoern.run(app, "0.0.0.0", 5000)
|
||||
fast_wsgi.run(wsgi_app=app, host="0.0.0.0", port=5000)
|
||||
Reference in New Issue
Block a user