Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 150 for decorators (0.06 sec)

  1. guava/src/com/google/common/collect/ForwardingNavigableMap.java

     * override one or more methods to modify the behavior of the backing map as desired per the <a
     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
     * <p><b>Warning:</b> The methods of {@code ForwardingNavigableMap} forward <i>indiscriminately</i>
     * to the methods of the delegate. For example, overriding {@link #put} alone <i>will not</i> change
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/settings.md

    ```Python
    def get_settings():
        return Settings()
    ```
    
    würden wir dieses Objekt für jeden Request erstellen und die `.env`-Datei für jeden Request lesen. ⚠️
    
    Da wir jedoch den `@lru_cache`-Dekorator oben verwenden, wird das `Settings`-Objekt nur einmal erstellt, nämlich beim ersten Aufruf. ✔️
    
    {* ../../docs_src/settings/app03_an_py39/main.py hl[1,11] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial001.py hl[6] *}
    
    `@app.get("/")` 告诉 **FastAPI** 在它下方的函数负责处理如下访问请求:
    
    * 请求路径为 `/`
    * 使用 <abbr title="HTTP GET 方法"><code>get</code> 操作</abbr>
    
    /// info | `@decorator` Info
    
    `@something` 语法在 Python 中被称为「装饰器」。
    
    像一顶漂亮的装饰帽一样,将它放在一个函数的上方(我猜测这个术语的命名就是这么来的)。
    
    装饰器接收位于其下方的函数并且用它完成一些工作。
    
    在我们的例子中,这个装饰器告诉 **FastAPI** 位于其下方的函数对应着**路径** `/` 加上 `get` **操作**。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/dependencies/index.md

    Eso es todo.
    
    **2 líneas**.
    
    Y tiene la misma forma y estructura que todas tus *path operation functions*.
    
    Puedes pensar en ella como una *path operation function* sin el "decorador" (sin el `@app.get("/some-path")`).
    
    Y puede devolver lo que quieras.
    
    En este caso, esta dependencia espera:
    
    * Un parámetro de query opcional `q` que es un `str`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  5. docs/fr/docs/python-types.md

    Ce qu'il faut retenir c'est qu'en utilisant les types standard de Python, à un seul endroit (plutôt que d'ajouter plus de classes, de décorateurs, etc.), **FastAPI** fera une grande partie du travail pour vous.
    
    /// info
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/dependencies/index.md

    E pronto.
    
    **2 linhas**.
    
    E com a mesma forma e estrutura de todas as suas *funções de operação de rota*.
    
    Você pode pensar nela como uma *função de operação de rota* sem o "decorador" (sem a linha `@app.get("/some-path")`).
    
    E com qualquer retorno que você desejar.
    
    Neste caso, a dependência espera por:
    
    * Um parâmetro de consulta opcional `q` do tipo `str`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/dependencies/index.md

    Das war's schon.
    
    **Zwei Zeilen**.
    
    Und sie hat die gleiche Form und Struktur wie alle Ihre *Pfadoperation-Funktionen*.
    
    Sie können sie sich als *Pfadoperation-Funktion* ohne den „Dekorator“ (ohne `@app.get("/some-path")`) vorstellen.
    
    Und sie kann alles zurückgeben, was Sie möchten.
    
    In diesem Fall erwartet diese Abhängigkeit:
    
    * Einen optionalen Query-Parameter `q`, der ein `str` ist.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. docs/en/docs/_llm-test.md

    * to serve the application
    * to serve the page
    
    * the app
    * the application
    
    * the request
    * the response
    * the error response
    
    * the path operation
    * the path operation decorator
    * the path operation function
    
    * the body
    * the request body
    * the response body
    * the JSON body
    * the form body
    * the file body
    * the function body
    
    * the parameter
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 14:48:47 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial001.py hl[6] *}
    `@app.get("/")`は直下の関数が下記のリクエストの処理を担当することを**FastAPI**に伝えます:
    
    * パス `/`
    * <abbr title="an HTTP GET method"><code>get</code> オペレーション</abbr>
    
    /// info | `@decorator` について
    
    Pythonにおける`@something`シンタックスはデコレータと呼ばれます。
    
    「デコレータ」は関数の上に置きます。かわいらしい装飾的な帽子のようです(この用語の由来はそこにあると思います)。
    
    「デコレータ」は直下の関数を受け取り、それを使って何かを行います。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. docs/es/docs/alternatives.md

    no puede depender de los tipos para definir validación, serialización y documentación al mismo tiempo. Debido a esto y algunas decisiones de diseño, para obtener validación, serialización y generación automática del esquema, es necesario agregar decoradores en muchos lugares. Por lo tanto, se vuelve bastante verboso.
    
    No puede manejar muy bien modelos anidados. Entonces, si el cuerpo JSON en la request es un objeto JSON que tiene campos internos que a su vez son objetos JSON anidados, no...
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:15:01 UTC 2025
    - 25.9K bytes
    - Viewed (0)
Back to top