Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 411 - 420 of 795 for asyncId (0.06 seconds)

  1. docs/ru/docs/tutorial/stream-json-lines.md

    ///
    
    ### Неасинхронные функции-обработчики пути { #non-async-path-operation-functions }
    
    Вы также можете использовать обычные функции `def` (без `async`) и использовать `yield` таким же образом.
    
    FastAPI обеспечит корректное выполнение так, чтобы это не блокировало цикл событий.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  2. docs/uk/docs/tutorial/background-tasks.md

    Це звичайна функція, яка може отримувати параметри.
    
    Вона може бути асинхронною `async def` або звичайною `def` функцією – **FastAPI** обробить її правильно.
    
    У нашому випадку функція записує у файл (імітуючи надсилання email).
    
    І оскільки операція запису не використовує `async` та `await`, ми визначаємо функцію як звичайну `def`:
    
    {* ../../docs_src/background_tasks/tutorial001_py310.py hl[6:9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            // Create a concrete implementation for comprehensive testing
            CommonServerMessageBlockResponse concreteResponse = new CommonServerMessageBlockResponse() {
                private boolean async = false;
                private CommonServerMessageBlockResponse next;
                private boolean received = false;
                private boolean error = false;
                private boolean verifyFailed = false;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  4. docs_src/custom_response/tutorial009_py310.py

    from fastapi import FastAPI
    from fastapi.responses import FileResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/")
    async def main():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 202 bytes
    - Click Count (0)
  5. docs_src/events/tutorial002_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.on_event("shutdown")
    def shutdown_event():
        with open("log.txt", mode="a") as log:
            log.write("Application shutdown")
    
    
    @app.get("/items/")
    async def read_items():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 255 bytes
    - Click Count (0)
  6. docs/es/docs/tutorial/testing.md

    ///
    
    /// tip | Consejo
    
    Si quieres llamar a funciones `async` en tus pruebas además de enviar requests a tu aplicación FastAPI (por ejemplo, funciones asincrónicas de bases de datos), echa un vistazo a las [Pruebas Asincrónicas](../advanced/async-tests.md) en el tutorial avanzado.
    
    ///
    
    ## Separando pruebas { #separating-tests }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  7. docs_src/custom_response/tutorial009b_py310.py

    from fastapi import FastAPI
    from fastapi.responses import FileResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/", response_class=FileResponse)
    async def main():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 217 bytes
    - Click Count (0)
  8. docs_src/query_params_str_validations/tutorial006c_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: str | None = Query(min_length=3)):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 15 16:23:59 GMT 2025
    - 261 bytes
    - Click Count (0)
  9. docs_src/path_operation_advanced_configuration/tutorial007_py310.py

    @app.post(
        "/items/",
        openapi_extra={
            "requestBody": {
                "content": {"application/x-yaml": {"schema": Item.model_json_schema()}},
                "required": True,
            },
        },
    )
    async def create_item(request: Request):
        raw_body = await request.body()
        try:
            data = yaml.safe_load(raw_body)
        except yaml.YAMLError:
            raise HTTPException(status_code=422, detail="Invalid YAML")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 797 bytes
    - Click Count (0)
  10. docs_src/server_sent_events/tutorial002_py310.py

    
    items = [
        Item(name="Plumbus", price=32.99),
        Item(name="Portal Gun", price=999.99),
        Item(name="Meeseeks Box", price=49.99),
    ]
    
    
    @app.get("/items/stream", response_class=EventSourceResponse)
    async def stream_items() -> AsyncIterable[ServerSentEvent]:
        yield ServerSentEvent(comment="stream of item updates")
        for i, item in enumerate(items):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 686 bytes
    - Click Count (0)
Back to Top