- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 2,311 for yield (0.04 sec)
-
docs/zh/docs/tutorial/middleware.md
* 它接收你的应用程序的每一个**请求**. * 然后它可以对这个**请求**做一些事情或者执行任何需要的代码. * 然后它将**请求**传递给应用程序的其他部分 (通过某种*路径操作*). * 然后它获取应用程序生产的**响应** (通过某种*路径操作*). * 它可以对该**响应**做些什么或者执行任何需要的代码. * 然后它返回这个 **响应**. !!! note "技术细节" 如果你使用了 `yield` 关键字依赖, 依赖中的退出代码将在执行中间件*后*执行. 如果有任何后台任务(稍后记录), 它们将在执行中间件*后*运行. ## 创建中间件 要创建中间件你可以在函数的顶部使用装饰器 `@app.middleware("http")`. 中间件参数接收如下参数: * `request`. * 一个函数 `call_next` 它将接收 `request` 作为参数.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 27 17:25:21 UTC 2021 - 2.7K bytes - Viewed (0) -
docs/em/docs/advanced/custom-response.md
```{ .python .annotate hl_lines="2 10-12 14" } {!../../../docs_src/custom_response/tutorial008.py!} ``` 1️⃣. 👉 🚂 🔢. ⚫️ "🚂 🔢" ↩️ ⚫️ 🔌 `yield` 📄 🔘. 2️⃣. ⚙️ `with` 🍫, 👥 ⚒ 💭 👈 📁-💖 🎚 📪 ⏮️ 🚂 🔢 🔨. , ⏮️ ⚫️ 🏁 📨 📨. 3️⃣. 👉 `yield from` 💬 🔢 🔁 🤭 👈 👜 🌟 `file_like`. & ⤴️, 🔠 🍕 🔁, 🌾 👈 🍕 👟 ⚪️➡️ 👉 🚂 🔢. , ⚫️ 🚂 🔢 👈 📨 "🏭" 👷 🕳 🙆 🔘.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Apr 01 09:26:04 UTC 2023 - 9.8K bytes - Viewed (0) -
fastapi/datastructures.py
""" return await super().close() @classmethod def __get_validators__(cls: Type["UploadFile"]) -> Iterable[Callable[..., Any]]: yield cls.validate @classmethod def validate(cls: Type["UploadFile"], v: Any) -> Any: if not isinstance(v, StarletteUploadFile): raise ValueError(f"Expected UploadFile, received: {type(v)}")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Apr 02 02:48:51 UTC 2024 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/SID.java
* accounts. SIDs are commonly represented using a textual format such as * <tt>S-1-5-21-1496946806-2192648263-3843101252-1029</tt> but they may * also be resolved to yield the name of the associated Windows account * such as <tt>Administrators</tt> or <tt>MYDOM\alice</tt>. * <p> * Consider the following output of <tt>examples/SidLookup.java</tt>: * * <pre>
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 5.1K bytes - Viewed (0) -
docs/features/calls.md
## [Calls](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-call/)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 3.9K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc
std::unique_ptr<Variable> var; ASSERT_NE(absl::OkStatus(), internal::LoadSavedVariable(context(), saved_variable, &var)); } // Assigning and reading values should yield // consistent results. TEST_P(SavedVariableLoadingTest, AssignAndReadVariableSuccesful) { auto& test_params = GetParam(); DataType dtype = std::get<0>(test_params);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 09:34:33 UTC 2024 - 6.2K bytes - Viewed (0) -
src/internal/concurrent/hashtriemap_test.go
for _, s := range testData { expectMissing(t, s, 0)(m.Load(s)) } }(i) } wg.Wait() }) } func testAll[K, V comparable](t *testing.T, m *HashTrieMap[K, V], testData map[K]V, yield func(K, V) bool) { for k, v := range testData { expectStored(t, k, v)(m.LoadOrStore(k, v)) } visited := make(map[K]int) m.All()(func(key K, got V) bool { want, ok := testData[key] if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 9.3K bytes - Viewed (0) -
platforms/enterprise/enterprise-operations/src/main/java/org/gradle/api/internal/tasks/execution/ExecuteTaskBuildOperationType.java
* * That is, this operation does not represent just the execution of task actions. * * This operation can fail _and_ yield a result. * If the operation gets as far as invoking the task executer * (i.e. beforeTask callbacks did not fail), then a result is expected.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 02 10:13:49 UTC 2024 - 5.5K bytes - Viewed (0) -
docs/ko/docs/tutorial/middleware.md
* **요청** 또는 다른 필요한 코드를 실행 시킬 수 있습니다. * **요청**을 응용 프로그램의 *경로 작동*으로 전달하여 처리합니다. * 애플리케이션의 *경로 작업*에서 생성한 **응답**를 받습니다. * **응답** 또는 다른 필요한 코드를 실행시키는 동작을 할 수 있습니다. * **응답**를 반환합니다. !!! note "기술 세부사항" 만약 `yield`를 사용한 의존성을 가지고 있다면, 미들웨어가 실행되고 난 후에 exit이 실행됩니다. 만약 (나중에 문서에서 다룰) 백그라운드 작업이 있다면, 모든 미들웨어가 실행되고 *난 후에* 실행됩니다. ## 미들웨어 만들기 미들웨어를 작성하기 위해서 함수 상단에 `@app.middleware("http")` 데코레이터를 사용할 수 있습니다.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Jan 31 14:35:27 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/canonicalize.cc
} Operation *terminator_op; for (auto it = single_block->begin(); it != single_block->end(); ++it) { terminator_op = rewriter.clone(*it, mapping); } // Map the block arguments to the yield results. for (auto iter_op : llvm::zip(for_op.getRegionIterArgs(), terminator_op->getOperands())) { mapping.map(std::get<0>(iter_op), std::get<1>(iter_op)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jan 14 22:15:06 UTC 2023 - 6.8K bytes - Viewed (0)