Added multiprocessing

This commit is contained in:
Channel Cat
2016-10-18 01:22:49 -07:00
parent 18aa937f29
commit 6f105a647e
10 changed files with 262 additions and 19 deletions

View File

@@ -0,0 +1,11 @@
# Run with: gunicorn --workers=1 --worker-class=meinheld.gmeinheld.MeinheldWorker falc:app
import falcon
import ujson as json
class TestResource:
def on_get(self, req, resp):
resp.body = json.dumps({"test": True})
app = falcon.API()
app.add_route('/', TestResource())