Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 141 for Decorator (0.08 sec)

  1. docs/ru/docs/tutorial/dependencies/global-dependencies.md

    Для некоторых типов приложений может потребоваться добавить зависимости ко всему приложению.
    
    Подобно тому, как вы можете [добавлять зависимости через параметр `dependencies` в *декораторах операций пути*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, вы можете добавлять зависимости сразу ко всему `FastAPI` приложению.
    
    В этом случае они будут применяться ко всем *операциям пути* в приложении:
    
    //// tab | Python 3.9+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/dependencies/global-dependencies.md

    Para alguns tipos de aplicação específicos você pode querer adicionar dependências para toda a aplicação.
    
    De forma semelhante a [adicionar dependências (`dependencies`) em *decoradores de operação de rota*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, você pode adicioná-las à aplicação `FastAPI`.
    
    Nesse caso, elas serão aplicadas a todas as *operações de rota* da aplicação:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="16"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Sebastián Ramírez <******@****.***> 1728247014 +0200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Sebastián Ramírez <******@****.***> 1728247014 +0200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/custom-response.md

    Sie können aber auch die `Response`, die Sie verwenden möchten, im *Pfadoperation-Dekorator* deklarieren.
    
    Der Inhalt, den Sie von Ihrer *Pfadoperation-Funktion* zurückgeben, wird in diese `Response` eingefügt.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Sebastián Ramírez <******@****.***> 1728247014 +0200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Sebastián Ramírez <******@****.***> 1728247014 +0200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/response-model.md

    In solchen Fällen können Sie statt des Rückgabetyps den **Pfadoperation-Dekorator**-Parameter `response_model` verwenden.
    
    Sie können `response_model` in jeder möglichen *Pfadoperation* verwenden:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * usw.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/path-operation-configuration.md

    # Pfadoperation-Konfiguration
    
    Es gibt mehrere Konfigurations-Parameter, die Sie Ihrem *Pfadoperation-Dekorator* übergeben können.
    
    /// warning | "Achtung"
    
    Beachten Sie, dass diese Parameter direkt dem *Pfadoperation-Dekorator* übergeben werden, nicht der *Pfadoperation-Funktion*.
    
    ///
    
    ## Response-Statuscode
    
    Sie können den (HTTP-)`status_code` definieren, den die Response Ihrer *Pfadoperation* verwenden soll.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/middleware.md

    Se houver alguma tarefa em segundo plano (documentada posteriormente), ela será executada *depois* de todo o middleware.
    
    ///
    
    ## Criar um middleware
    
    Para criar um middleware, use o decorador `@app.middleware("http")` logo acima de uma função.
    
    A função middleware recebe:
    
    * A `request`.
    * Uma função `call_next` que receberá o `request` como um parâmetro.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top