- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for root_path (0.07 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` 参数。 ```Python hl_lines="3" {!../../docs_src/behind_a_proxy/tutorial002.py!} ``` 传递 `root_path` 给 `FastAPI` 与传递 `--root-path` 命令行选项给 Uvicorn 或 Hypercorn 一样。 ### 关于 `root_path` 注意,服务器(Uvicorn)只是把 `root_path` 传递给应用。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.4K bytes - Viewed (0) -
docs/em/docs/advanced/behind-a-proxy.md
``` </div> 🚥 👆 ⚙️ Hypercorn, ⚫️ ✔️ 🎛 `--root-path`. /// note | "📡 ℹ" 🔫 🔧 🔬 `root_path` 👉 ⚙️ 💼. & `--root-path` 📋 ⏸ 🎛 🚚 👈 `root_path`. /// ### ✅ ⏮️ `root_path` 👆 💪 🤚 ⏮️ `root_path` ⚙️ 👆 🈸 🔠 📨, ⚫️ 🍕 `scope` 📖 (👈 🍕 🔫 🔌). 📥 👥 ✅ ⚫️ 📧 🎦 🎯. ```Python hl_lines="8" {!../../docs_src/behind_a_proxy/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.1K bytes - Viewed (0) -
docs/pt/docs/advanced/behind-a-proxy.md
Se você usar Hypercorn, ele também tem a opção `--root-path`. /// 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 Você pode obter o `root_path` atual usado pela sua aplicação para cada solicitação, ele faz parte do dicionário `scope` (que faz parte da especificação ASGI).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:28:18 UTC 2024 - 12.2K 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. /// ### Überprüfen des aktuellen `root_path`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.1K bytes - Viewed (0) -
docs/en/docs/advanced/behind-a-proxy.md
If you use Hypercorn, it also has the option `--root-path`. /// 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` 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 Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 16:49:49 UTC 2024 - 11.6K bytes - Viewed (0) -
cmd/format-erasure_test.go
if err != nil { t.Fatal(err) } if err = os.MkdirAll(pathJoin(rootPath, minioMetaBucket), os.FileMode(0o755)); err != nil { t.Fatal(err) } if err = os.WriteFile(pathJoin(rootPath, minioMetaBucket, formatConfigFile), b, os.FileMode(0o644)); err != nil { t.Fatal(err) } formatData, _, err := formatErasureMigrate(rootPath) if err != nil { t.Fatal(err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Apr 15 08:25:46 UTC 2024 - 12.9K bytes - Viewed (0) -
internal/grid/manager.go
// Bumping this should only be done when overall, // incompatible changes are made, not when adding a new handler // or changing an existing handler. apiVersion = "v1" // RoutePath is the remote path to connect to. RoutePath = "/minio/grid/" + apiVersion // RouteLockPath is the remote lock path to connect to. RouteLockPath = "/minio/grid/lock/" + apiVersion )
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 10.6K bytes - Viewed (0) -
configure.py
write_action_env_to_bazelrc('LD_LIBRARY_PATH', environ_cp.get('LD_LIBRARY_PATH')) if (environ_cp.get('TF_NEED_ROCM') == '1' and environ_cp.get('ROCM_PATH')): write_action_env_to_bazelrc('ROCM_PATH', environ_cp.get('ROCM_PATH')) if (environ_cp.get('TF_NEED_ROCM') == '1' and environ_cp.get('HIP_PLATFORM')): write_action_env_to_bazelrc('HIP_PLATFORM', environ_cp.get('HIP_PLATFORM'))
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Oct 02 22:16:02 UTC 2024 - 48.2K bytes - Viewed (0) -
cmd/generic-handlers.go
func guessIsRPCReq(req *http.Request) bool { if req == nil { return false } if req.Method == http.MethodGet && req.URL != nil { switch req.URL.Path { case grid.RoutePath, grid.RouteLockPath: return true } } return (req.Method == http.MethodPost || req.Method == http.MethodGet) && strings.HasPrefix(req.URL.Path, minioReservedBucketPath+SlashSeparator) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 20.5K bytes - Viewed (0)