标签: FastAPI教程 响应头

后浪云FastAPI教程:FastAPI教程 响应头

使用Response参数 你可以Response在你的路径操作函数中声明一个 type 的参数(就像你可以为 cookie 做的那样)。 然后您可以在该时间响应对象中设置标头。 fro……