摘要: 在py代码中利用middleware()方法修饰request/response即可,无需别的操作。 from sanic import Sanic, HTTPResponse, Requestapp=Sanic('Sanic_Server') @app.middleware("request") 阅读全文
posted @ 2023-04-11 13:04 morein2008 阅读(56) 评论(0) 推荐(0) 编辑