- Sort Score
- Num 10 results
- Language All
Results 221 - 230 of 736 for depende (0.06 seconds)
-
docs_src/websockets_/tutorial002_an_py310.py
from typing import Annotated from fastapi import ( Cookie, Depends, FastAPI, Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)">
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 12:34:37 GMT 2026 - 2.8K bytes - Click Count (0) -
docs_src/websockets_/tutorial002_py310.py
from fastapi import ( Cookie, Depends, FastAPI, Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)">
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 12:34:37 GMT 2026 - 2.7K bytes - Click Count (0) -
docs/es/docs/advanced/websockets.md
Puedes enviar (y recibir) muchos mensajes: <img src="/img/tutorial/websockets/image04.png"> Y todos usarán la misma conexión WebSocket. ## Usando `Depends` y otros { #using-depends-and-others } En endpoints de WebSocket puedes importar desde `fastapi` y usar: * `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query` Funcionan de la misma manera que para otros endpoints de FastAPI/*path operations*:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 5.5K bytes - Click Count (0) -
docs/zh/docs/tutorial/security/get-current-user.md
## 注入当前用户 { #inject-the-current-user } 在*路径操作* 的 `Depends` 中使用 `get_current_user`: {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *} 注意,此处把 `current_user` 的类型声明为 Pydantic 的 `User` 模型。 这有助于在函数内部使用代码补全和类型检查。 /// tip | 提示 还记得请求体也是使用 Pydantic 模型声明的吧。 放心,因为使用了 `Depends`,**FastAPI** 不会搞混。 /// /// check | 检查 依赖系统的这种设计方式可以支持不同的依赖项返回同一个 `User` 模型。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 3.6K bytes - Click Count (0) -
docs/pt/docs/advanced/websockets.md
Você pode enviar (e receber) muitas mensagens: <img src="/img/tutorial/websockets/image04.png"> E todas elas usarão a mesma conexão WebSocket. ## Usando `Depends` e outros { #using-depends-and-others } Nos endpoints WebSocket você pode importar do `fastapi` e usar: * `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query` Eles funcionam da mesma forma que para outros endpoints FastAPI/*operações de rota*:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 5.6K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/nullaway/NullawayAttributes.kt
override fun execute(details: CompatibilityCheckDetails<NullawayState>) { with(details) { when { // Nullaway-enabled targets must not depend on nullaway-disabled ones. // They can depend on nullaway-undefined, which any external dependency is going to be. producerValue == NullawayState.DISABLED && consumerValue == NullawayState.ENABLED -> incompatible()
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Aug 20 13:18:23 GMT 2025 - 1.9K bytes - Click Count (0) -
docs/tr/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
Bu gibi durumlarda, `Depends` ile bir *path operation function* parametresi tanımlamak yerine, *path operation decorator*'üne `dependencies` adında bir `list` ekleyebilirsiniz. ## *Path Operation Decorator*'üne `dependencies` Ekleyin { #add-dependencies-to-the-path-operation-decorator } *Path operation decorator*, opsiyonel bir `dependencies` argümanı alır. Bu, `Depends()` öğelerinden oluşan bir `list` olmalıdır:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 3.3K bytes - Click Count (0) -
docs/fr/docs/advanced/websockets.md
<img src="/img/tutorial/websockets/image04.png"> Et tous utiliseront la même connexion WebSocket. ## Utiliser `Depends` et autres { #using-depends-and-others } Dans les endpoints WebSocket, vous pouvez importer depuis `fastapi` et utiliser : * `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query`
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 5.9K bytes - Click Count (0) -
docs/es/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## Inyectar al usuario actual { #inject-the-current-user } Entonces ahora podemos usar el mismo `Depends` con nuestro `get_current_user` en la *path operation*: {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *} Ten en cuenta que declaramos el tipo de `current_user` como el modelo de Pydantic `User`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:41:41 GMT 2026 - 4.4K bytes - Click Count (0) -
docs/de/docs/advanced/websockets.md
<img src="/img/tutorial/websockets/image04.png"> Und alle verwenden dieselbe WebSocket-Verbindung. ## Verwendung von `Depends` und anderen { #using-depends-and-others } In WebSocket-Endpunkten können Sie Folgendes aus `fastapi` importieren und verwenden: * `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query`
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 6.1K bytes - Click Count (0)