app = FastAPI(). @app.get("/file", response_class=FileResponse). async def main():. return file_path. 感觉这个比StreamimgResponse 简单多了 ...
確定! 回上一頁