Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 154 for decorador (0.08 sec)

  1. 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)
  2. android/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.1K bytes
    - Viewed (0)
  3. 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)
  4. docs/es/docs/advanced/events.md

    Y la parte después del `yield` será ejecutada **después** de que la aplicación haya terminado.
    
    ### Async Context Manager { #async-context-manager }
    
    Si revisas, la función está decorada con un `@asynccontextmanager`.
    
    Eso convierte a la función en algo llamado un "**async context manager**".
    
    {* ../../docs_src/events/tutorial003_py39.py hl[1,13] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. docs/de/docs/_llm-test.md

    * die Anwendung bereitstellen
    * die Seite ausliefern
    
    * die App
    * die Anwendung
    
    * der Request
    * die Response
    * die Error-Response
    
    * die Pfadoperation
    * der Pfadoperation-Dekorator
    * die Pfadoperation-Funktion
    
    * der Body
    * der Requestbody
    * der Responsebody
    * der JSON-Body
    * der Formularbody
    * der Dateibody
    * der Funktionskörper
    
    * der Parameter
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 07:17:04 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  6. 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)
  7. docs/pt/docs/tutorial/handling-errors.md

    E também inclui um manipulador de exceções padrão para ele.
    
    Para sobrescrevê-lo, importe o `RequestValidationError` e use-o com o `@app.exception_handler(RequestValidationError)` para decorar o manipulador de exceções.
    
    O manipulador de exceções receberá um `Request` e a exceção.
    
    {* ../../docs_src/handling_errors/tutorial004_py39.py hl[2,14:19] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  8. docs/es/docs/tutorial/handling-errors.md

    Y también incluye un manejador de excepciones predeterminado para ello.
    
    Para sobrescribirlo, importa el `RequestValidationError` y úsalo con `@app.exception_handler(RequestValidationError)` para decorar el manejador de excepciones.
    
    El manejador de excepciones recibirá un `Request` y la excepción.
    
    {* ../../docs_src/handling_errors/tutorial004_py39.py hl[2,14:19] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top