- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for get_portal (0.05 seconds)
-
docs_src/response_model/tutorial003_02_py310.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")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 381 bytes - Click Count (0)