- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for RedirectResponse (0.19 sec)
-
fastapi/responses.py
from starlette.responses import JSONResponse as JSONResponse # noqa from starlette.responses import PlainTextResponse as PlainTextResponse # noqa from starlette.responses import RedirectResponse as RedirectResponse # noqa from starlette.responses import Response as Response # noqa from starlette.responses import StreamingResponse as StreamingResponse # noqa try: import ujson
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 18 12:36:40 UTC 2023 - 1.7K bytes - Viewed (0) -
docs/em/docs/advanced/custom-response.md
```Python hl_lines="2 7" {!../../docs_src/custom_response/tutorial001.py!} ``` /// tip ⚫️ 💪 👈 `ORJSONResponse` 💪 ⏩ 🎛. /// ### `RedirectResponse` 📨 🇺🇸🔍 ❎. ⚙️ 3️⃣0️⃣7️⃣ 👔 📟 (🍕 ❎) 🔢. 👆 💪 📨 `RedirectResponse` 🔗: ```Python hl_lines="2 9" {!../../docs_src/custom_response/tutorial006.py!} ``` --- ⚖️ 👆 💪 ⚙️ ⚫️ `response_class` 🔢:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.7K bytes - Viewed (0) -
docs/de/docs/advanced/custom-response.md
``` /// tip | "Tipp" Möglicherweise ist `ORJSONResponse` eine schnellere Alternative. /// ### `RedirectResponse` Gibt eine HTTP-Weiterleitung (HTTP-Redirect) zurück. Verwendet standardmäßig den Statuscode 307 – Temporäre Weiterleitung (Temporary Redirect). Sie können eine `RedirectResponse` direkt zurückgeben: ```Python hl_lines="2 9" {!../../docs_src/custom_response/tutorial006.py!} ``` ---
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.5K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
``` /// tip It's possible that `ORJSONResponse` might be a faster alternative. /// ### `RedirectResponse` Returns an HTTP redirect. Uses a 307 status code (Temporary Redirect) by default. You can return a `RedirectResponse` directly: ```Python hl_lines="2 9" {!../../docs_src/custom_response/tutorial006.py!} ``` ---
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12K bytes - Viewed (0) -
docs/pt/docs/advanced/custom-response.md
``` /// tip | Dica É possível que `ORJSONResponse` seja uma alternativa mais rápida. /// ### `RedirectResponse` Retorna um redirecionamento HTTP. Utiliza o código de status 307 (Redirecionamento Temporário) por padrão. Você pode retornar uma `RedirectResponse` diretamente: ```Python hl_lines="2 9" {!../../docs_src/custom_response/tutorial006.py!} ``` ---
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 29 11:47:10 UTC 2024 - 13.5K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
And tools will also be happy because both `RedirectResponse` and `JSONResponse` are subclasses of `Response`, so the type annotation is correct. ### Annotate a Response Subclass You can also use a subclass of `Response` in the type annotation: ```Python hl_lines="8-9" {!> ../../docs_src/response_model/tutorial003_03.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.1K bytes - Viewed (0) -
docs/em/docs/tutorial/response-model.md
``` 👉 🙅 💼 🍵 🔁 FastAPI ↩️ 📨 🆎 ✍ 🎓 (⚖️ 🏿) `Response`. & 🧰 🔜 😄 ↩️ 👯♂️ `RedirectResponse` & `JSONResponse` 🏿 `Response`, 🆎 ✍ ☑. ### ✍ 📨 🏿 👆 💪 ⚙️ 🏿 `Response` 🆎 ✍: ```Python hl_lines="8-9" {!> ../../docs_src/response_model/tutorial003_03.py!} ``` 👉 🔜 👷 ↩️ `RedirectResponse` 🏿 `Response`, & FastAPI 🔜 🔁 🍵 👉 🙅 💼. ### ❌ 📨 🆎 ✍
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.8K bytes - Viewed (0) -
fastapi/routing.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 172.1K bytes - Viewed (0) -
docs/ru/docs/tutorial/response-model.md
``` Это поддерживается FastAPI по-умолчанию, т.к. аннотация проставлена в классе (или подклассе) `Response`. И ваши помощники разработки также будут счастливы, т.к. оба класса `RedirectResponse` и `JSONResponse` являются подклассами `Response`. Таким образом мы получаем корректную аннотацию типа. ### Подкласс Response в аннотации типа Вы также можете указать подкласс `Response` в аннотации типа:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 30.4K bytes - Viewed (0) -
docs/de/docs/tutorial/response-model.md
``` Dieser einfache Anwendungsfall wird automatisch von FastAPI gehandhabt, weil die Annotation des Rückgabetyps die Klasse (oder eine Unterklasse von) `Response` ist. Und Tools werden auch glücklich sein, weil sowohl `RedirectResponse` als auch `JSONResponse` Unterklassen von `Response` sind, die Typannotation ist daher korrekt. ### Eine Unterklasse von Response annotieren
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.8K bytes - Viewed (0)