Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 19 for cierre (0.04 seconds)

  1. docs/es/docs/advanced/advanced-dependencies.md

    Si hay casos de uso convincentes para el cierre temprano en dependencias con `yield`, consideraría agregar una nueva forma de optar por el cierre temprano.
    
    ### Dependencias con `yield` y `except`, detalles técnicos { #dependencies-with-yield-and-except-technical-details }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  2. docs/es/docs/advanced/stream-data.md

    ///
    
    Al usar un bloque `with`, nos aseguramos de que el objeto tipo archivo se cierre cuando termine la función generadora (la función con `yield`). Es decir, después de que termine de enviar la response.
    
    No sería tan importante en este ejemplo específico porque es un archivo falso en memoria (con `io.BytesIO`), pero con un archivo real sí sería importante asegurarse de que el archivo se cierre al terminar de trabajar con él.
    
    ### Archivos y async { #files-and-async }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  3. docs/es/docs/advanced/websockets.md

    Cuando una conexión de WebSocket se cierra, el `await websocket.receive_text()` lanzará una excepción `WebSocketDisconnect`, que puedes capturar y manejar como en este ejemplo.
    
    {* ../../docs_src/websockets_/tutorial003_py310.py hl[79:81] *}
    
    Para probarlo:
    
    * Abre la aplicación con varias pestañas del navegador.
    * Escribe mensajes desde ellas.
    * Luego cierra una de las pestañas.
    
    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)
  4. src/main/webapp/js/admin/plugins/form-validator/location.js

    a","rwanda","saint barthélemy","saint helena","ascension and tristan da cunha","Ascension and tristan da cunha","saint kitts and nevis","saint lucia","saint martin","saint pierre and miquelon","saint vincent and the grenadines","samoa","san marino","sao tome and principe","saudi arabia","senegal","serbia","seychelles","sierra leone","singapore","sint maarten","slovakia","slovenia","solomon islands","somalia","south africa","south georgia and the south sandwich islands","south sudan","spain","sri...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 5.2K bytes
    - Click Count (0)
  5. .github/workflows/release-branch-cherrypick.yml

    # input the branch name and paste the cherry-pick commit and click Run. A PR
    # will be created.
    
    name: Release Branch Cherrypick
    on:
      workflow_dispatch:
        inputs:
          # We use this instead of the "run on branch" argument because GitHub looks
          # on that branch for a workflow.yml file, and we'd have to cherry-pick
          # this file into those branches.
          release_branch:
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Jan 01 08:09:03 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  6. tests/test_serialize_response_model.py

        owner_ids: list[int] | None = None
    
    
    @app.get("/items/valid", response_model=Item)
    def get_valid():
        return Item(aliased_name="valid", price=1.0)
    
    
    @app.get("/items/coerce", response_model=Item)
    def get_coerce():
        return Item(aliased_name="coerce", price="1.0")
    
    
    @app.get("/items/validlist", response_model=list[Item])
    def get_validlist():
        return [
            Item(aliased_name="foo"),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  7. tests/test_serialize_response.py

        owner_ids: list[int] | None = None
    
    
    @app.get("/items/valid", response_model=Item)
    def get_valid():
        return {"name": "valid", "price": 1.0}
    
    
    @app.get("/items/coerce", response_model=Item)
    def get_coerce():
        return {"name": "coerce", "price": "1.0"}
    
    
    @app.get("/items/validlist", response_model=list[Item])
    def get_validlist():
        return [
            {"name": "foo"},
            {"name": "bar", "price": 1.0},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  8. tests/test_serialize_response_dataclass.py

    @app.get("/items/object", response_model=Item)
    def get_object():
        return Item(
            name="object", date=datetime(2021, 7, 26), price=1.0, owner_ids=[1, 2, 3]
        )
    
    
    @app.get("/items/coerce", response_model=Item)
    def get_coerce():
        return {"name": "coerce", "date": datetime(2021, 7, 26).isoformat(), "price": "1.0"}
    
    
    @app.get("/items/validlist", response_model=list[Item])
    def get_validlist():
        return [
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/server-sent-events.md

    FastAPI implementa algunas mejores prácticas de SSE desde el primer momento.
    
    - Enviar un comentario de **"keep alive" `ping`** cada 15 segundos cuando no ha habido ningún mensaje, para evitar que algunos proxies cierren la conexión, como se sugiere en la [Especificación HTML: Server-Sent Events](https://html.spec.whatwg.org/multipage/server-sent-events.html#authoring-notes).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 5K bytes
    - Click Count (0)
  10. deploy_website.sh

    python3 -m venv venv
    source venv/bin/activate
    pip install mkdocs-material mkdocs-redirects
    mkdocs gh-deploy
    
    # Restore Javadocs from 1.x, 2.x, and 3.x.
    git checkout gh-pages
    git cherry-pick bb229b9dcc9a21a73edbf8d936bea88f52e0a3ff
    git cherry-pick c695732f1d4aea103b826876c077fbfea630e244
    git push --set-upstream origin gh-pages
    
    # Delete our temp folder
    cd ..
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Nov 20 15:26:12 GMT 2023
    - 1.2K bytes
    - Click Count (0)
Back to Top