我们也可以在依赖项中使用Response参数,然后设置header信息(以及cookie信息等)。 @app.get("/headers-and-object/") def get_headers(response: Response): ...
確定! 回上一頁