- Sort Score
- Num 10 results
- Language All
Results 261 - 270 of 459 for Depends (0.09 seconds)
-
docs/ja/docs/tutorial/security/first-steps.md
/// 変数`oauth2_scheme`は`OAuth2PasswordBearer`のインスタンスですが、「呼び出し可能」です。 次のように、呼ぶことができます: ```Python oauth2_scheme(some, parameters) ``` そのため、`Depends`と一緒に使うことができます。 ### 使い方 これで`oauth2_scheme`を`Depends`で依存関係に渡すことができます。 {* ../../docs_src/security/tutorial001.py hl[10] *} この依存関係は、*path operation function*のパラメーター`token`に代入される`str`を提供します。Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 10.4K bytes - Click Count (0) -
fastapi/params.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 26.3K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java
// Should not throw exception even if .mvn creation fails int result = upgradeGoal.testExecuteWithTargetModel(context, "4.0.0"); // The exact behavior depends on implementation, but it should handle gracefully // and not crash the entire upgrade process assertTrue(result >= 0, "Should handle .mvn creation failure gracefully"); } }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 13.7K bytes - Click Count (0) -
docs/ru/docs/tutorial/security/simple-oauth2.md
### `OAuth2PasswordRequestForm` { #oauth2passwordrequestform } Сначала импортируйте `OAuth2PasswordRequestForm` и затем используйте её как зависимость с `Depends` в операции пути для `/token`: {* ../../docs_src/security/tutorial003_an_py310.py hl[4,78] *} `OAuth2PasswordRequestForm` — это зависимость-класс, которая объявляет тело формы со следующими полями: * `username`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 30 11:24:39 GMT 2025 - 16.3K bytes - Click Count (0) -
src/builtin/builtin.go
// slice, map, or chan (only). Like new, the first argument is a type, not a // value. Unlike new, make's return type is the same as the type of its // argument, not a pointer to it. The specification of the result depends on // the type: // // - Slice: The size specifies the length. The capacity of the slice is // equal to its length. A second integer argument may be provided to
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Dec 30 23:59:23 GMT 2024 - 12.8K bytes - Click Count (0) -
src/cmd/api/main_test.go
// w.importDir["vendor/golang.org/x/net/route"] = "<goroot>/src/vendor/golang.org/x/net/route" // // Since the set of packages that exist depends on context, the result of // loadImports also depends on context. However, to improve test running time // the configuration for each environment is cached across runs. func (w *Walker) loadImports() { if w.context == nil {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Feb 20 03:25:33 GMT 2025 - 31.4K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
logger.info(""); infoLine('-'); String name = event.getProject().getName(); infoMain("Skipping " + name); logger.info("{} was not built because a module it depends on failed to build.", name); infoLine('-'); } } @Override public void projectStarted(ExecutionEvent event) { if (logger.isInfoEnabled()) { init();
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Nov 08 08:49:11 GMT 2024 - 17.2K bytes - Click Count (0) -
docs/pt/docs/tutorial/security/simple-oauth2.md
Agora vamos usar os utilitários fornecidos pelo **FastAPI** para lidar com isso. ### `OAuth2PasswordRequestForm` { #oauth2passwordrequestform } Primeiro, importe `OAuth2PasswordRequestForm` e use-o como uma dependência com `Depends` na *operação de rota* para `/token`: {* ../../docs_src/security/tutorial003_an_py310.py hl[4,78] *} `OAuth2PasswordRequestForm` é uma dependência de classe que declara um corpo de formulário com: * O `username`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 10.3K bytes - Click Count (0) -
fastapi/param_functions.py
from typing import Annotated from fastapi import Depends, FastAPI app = FastAPI() async def common_parameters(q: str | None = None, skip: int = 0, limit: int = 100): return {"q": q, "skip": skip, "limit": limit} @app.get("/items/") async def read_items(commons: Annotated[dict, Depends(common_parameters)]): return commons ``` """Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 63K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java
*/ boolean problemsOverflow(); /** * Reports a problem: always maintains the counters, but whether problem is preserved in memory, depends on * implementation and its configuration. * * @param problem the problem to report * @return {@code true} if passed problem is preserved by this call. */Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jul 18 17:30:19 GMT 2025 - 11.4K bytes - Click Count (0)