幂等烧瓶端点
flask-once的Python项目详细描述
烧瓶一次
在
用于烧瓶路线的幂等装饰器。
灵感来自stripe's idempotent 端点。在
安装
pip install flask-once
使用
^{pr2}$试验
pip install requirements-dev.txt
make test
运行示例
启动应用程序
python example.py
卷曲端点
curl localhost:5000/endpoint \ -H 'Idempotent-Key: x'
上传
make tag
待办事项:
- 仅使用decorator缓存路由。在
- 添加未包装在幂等性中的测试终结点
- 项目
标签: