- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for root_path (0.05 sec)
-
docs/zh/docs/advanced/behind-a-proxy.md
```JSON { "message": "Hello World", "root_path": "/api/v1" } ``` ### 在 FastAPI 应用里设置 `root_path` 还有一种方案,如果不能提供 `--root-path` 或等效的命令行选项,则在创建 FastAPI 应用时要设置 `root_path` 参数。 {* ../../docs_src/behind_a_proxy/tutorial002.py hl[3] *} 传递 `root_path` 给 `FastAPI` 与传递 `--root-path` 命令行选项给 Uvicorn 或 Hypercorn 一样。 ### 关于 `root_path` 注意,服务器(Uvicorn)只是把 `root_path` 传递给应用。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 10.3K bytes - Viewed (0) -
docs/de/docs/advanced/behind-a-proxy.md
/// note | Technische Details Die ASGI-Spezifikation definiert einen `root_path` für diesen Anwendungsfall. Und die Kommandozeilenoption `--root-path` stellt diesen `root_path` bereit. /// ### Testen des aktuellen `root_path` { #checking-the-current-root-path }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 18.6K bytes - Viewed (0) -
docs/pt/docs/advanced/behind-a-proxy.md
/// note | Detalhes Técnicos A especificação ASGI define um `root_path` para esse caso de uso. E a opção de linha de comando `--root-path` fornece esse `root_path`. /// ### Verificando o `root_path` atual { #checking-the-current-root-path }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 17.2K bytes - Viewed (0) -
docs/ru/docs/advanced/behind-a-proxy.md
/// note | Технические детали Спецификация ASGI определяет `root_path` для такого случая. А опция командной строки `--root-path` передаёт этот `root_path`. /// ### Проверка текущего `root_path` { #checking-the-current-root-path } Вы можете получить текущий `root_path`, используемый вашим приложением для каждого запроса, — он входит в словарь `scope` (часть спецификации ASGI).Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 23.2K bytes - Viewed (0) -
docs/es/docs/advanced/behind-a-proxy.md
/// note | Detalles Técnicos La especificación ASGI define un `root_path` para este caso de uso. Y la opción de línea de comandos `--root-path` proporciona ese `root_path`. /// ### Revisar el `root_path` actual { #checking-the-current-root-path }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 17.1K bytes - Viewed (0) -
docs/en/docs/advanced/behind-a-proxy.md
/// note | Technical Details The ASGI specification defines a `root_path` for this use case. And the `--root-path` command line option provides that `root_path`. /// ### Checking the current `root_path` { #checking-the-current-root-path } You can get the current `root_path` used by your application for each request, it is part of the `scope` dictionary (that's part of the ASGI spec).Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 16.4K bytes - Viewed (0) -
scripts/translate.py
f"Path must be inside {en_docs_path}" ) out_path = generate_lang_path(lang=language, path=en_path) out_path.parent.mkdir(parents=True, exist_ok=True) original_content = en_path.read_text(encoding="utf-8") old_translation: str | None = None if out_path.exists(): print(f"Found existing translation: {out_path}") old_translation = out_path.read_text(encoding="utf-8")Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 19:05:53 UTC 2025 - 34.1K bytes - Viewed (0)