Search Options

Results per page
Sort
Preferred Languages
Advance

Results 701 - 710 of 782 for asyncio (0.03 sec)

  1. tests/test_regex_deprecated_body.py

    from inline_snapshot import snapshot
    
    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.post("/items/")
            async def read_items(
                q: Annotated[str | None, Form(regex="^fixedquery$")] = None,
            ):
                if q:
                    return f"Hello {q}"
                else:
                    return "Hello World"
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. docs/ru/llm-prompt.md

    * mount (noun): точка монтирования / mount (keep in English if it's a FastAPI keyword)
    * plugin: плагин
    * plug-in: плагин
    * full stack: full stack (do not translate)
    * full-stack: full-stack (do not translate)
    * loop (as in async loop): цикл событий
    * Machine Learning: Машинное обучение
    * Deep Learning: Глубокое обучение
    * callback hell: callback hell (clarify as `ад обратных вызовов`)
    * on the fly: на лету
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Oct 06 11:09:58 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. tests/test_no_schema_split.py

    
    class Message(BaseModel):
        input: str
        output: MessageOutput
    
    
    app = FastAPI(title="Minimal FastAPI App", version="1.0.0")
    
    
    @app.post("/messages", response_model=Message)
    async def create_message(input_message: str) -> Message:
        return Message(
            input=input_message,
            output=MessageOutput(body=f"Processed: {input_message}"),
        )
    
    
    client = TestClient(app)
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/custom-response.md

    You can also use the `status_code` parameter combined with the `response_class` parameter:
    
    {* ../../docs_src/custom_response/tutorial006c_py39.py hl[2,7,9] *}
    
    ### `StreamingResponse` { #streamingresponse }
    
    Takes an async generator or a normal generator/iterator and streams the response body.
    
    {* ../../docs_src/custom_response/tutorial007_py39.py hl[2,14] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        )
    
      override fun connectTcp(): ConnectResult {
        check(rawSocket == null) { "TCP already connected" }
    
        var success = false
    
        // Tell the call about the connecting call so async cancels work.
        call.plansToCancel += this
        try {
          call.eventListener.connectStart(call, route.socketAddress, route.proxy)
          connectionPool.connectionListener.connectStart(route, call)
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Oct 08 03:50:05 UTC 2025
    - 19.3K bytes
    - Viewed (2)
  6. docs/zh/docs/tutorial/dependencies/sub-dependencies.md

    在高级使用场景中,如果不想使用「缓存」值,而是为需要在同一请求的每一步操作(多次)中都实际调用依赖项,可以把 `Depends` 的参数 `use_cache` 的值设置为 `False` :
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
        return {"fresh_value": fresh_value}
    ```
    
    ## 小结
    
    千万别被本章里这些花里胡哨的词藻吓倒了,其实**依赖注入**系统非常简单。
    
    依赖注入无非是与*路径操作函数*一样的函数罢了。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/SimplexTransferListener.java

            public void process(Consumer<TransferEvent> consumer) {
                consumer.accept(event);
            }
    
            public void waitForProcessed() throws InterruptedException {
                // nothing, is async
            }
        }
    
        private static class BlockingExchange extends Exchange {
            private final CountDownLatch latch = new CountDownLatch(1);
    
            private BlockingExchange(TransferEvent event) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 08 08:49:11 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. docs/uk/docs/tutorial/first-steps.md

    У даному випадку це асинхронна функція.
    
    ---
    
    Ви також можете визначити її як звичайну функцію замість `async def`:
    
    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note | Примітка
    
    Якщо не знаєте в чому різниця, подивіться [Конкурентність: *"Поспішаєш?"*](../async.md#in-a-hurry){.internal-link target=_blank}.
    
    ///
    
    ### Крок 5: поверніть результат
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  9. docs/pt/llm-prompt.md

    * «/// info | Very Technical Details»: «/// note | Detalhes Técnicos Avançados»
    * «/// note»: «/// note | Nota»
    * «/// tip»: «/// tip | Dica»
    * «/// warning»: «/// warning | Atenção»
    * «(you should)»: «(você deveria)»
    * async context manager: gerenciador de contexto assíncrono
    * autocomplete: autocompletar
    * autocompletion: preenchimento automático
    * bug: bug
    * context manager: gerenciador de contexto
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/SimplexTransferListener.java

            public void process(Consumer<TransferEvent> consumer) {
                consumer.accept(event);
            }
    
            public void waitForProcessed() throws InterruptedException {
                // nothing, is async
            }
        }
    
        private static class BlockingExchange extends Exchange {
            private final CountDownLatch latch = new CountDownLatch(1);
    
            private BlockingExchange(TransferEvent event) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Feb 06 11:28:05 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top