- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for RedirectResponse (0.18 sec)
-
docs_src/response_model/tutorial003_02.py
from fastapi import FastAPI, Response from fastapi.responses import JSONResponse, RedirectResponse app = FastAPI() @app.get("/portal") async def get_portal(teleport: bool = False) -> Response: if teleport: return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 10 16:22:47 GMT 2023 - 381 bytes - Viewed (0)