Falcon 学习

学习资料

* github
* 官方文档
* 项目代码

学习记录

  1. 中间件
# Configure your WSGI server to load "things.app" (app is a WSGI callable)
app = falcon.API(middleware=[
AuthMiddleware(),
RequireJSON(),
JSONTranslator(),
])

快速搭建

  1. 按照文档操作即可
    waitress-serve --port=8000 things:app
    # things 模块名称
    # app 变量名称
posted @ 2020-12-21 11:36  梅谷暴君  阅读(84)  评论(0编辑  收藏  举报