from fastapi import FastAPI, Response app = FastAPI() @app.get("/") async def main(response: Response): response.headers['X-something-else'] = "some value" ...
確定! 回上一頁