Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 149 for decorador (0.03 sec)

  1. docs/en/docs/features.md

    * **Extensible**:
        * Pydantic allows custom data types to be defined or you can extend validation with methods on a model decorated with the validator decorator.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/first-steps.md

    `@app.get("/")`은 **FastAPI**에게 바로 아래에 있는 함수가 다음으로 이동하는 요청을 처리한다는 것을 알려줍니다.
    
    * 경로 `/`
    * <abbr title="HTTP GET 메소드"><code>get</code> 작동</abbr> 사용
    
    /// info | `@decorator` 정보
    
    이 `@something` 문법은 파이썬에서 "데코레이터"라 부릅니다.
    
    마치 예쁜 장식용(Decorative) 모자처럼(개인적으로 이 용어가 여기서 유래한 것 같습니다) 함수 맨 위에 놓습니다.
    
    "데코레이터"는 아래 있는 함수를 받아 그것으로 무언가를 합니다.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. docs/zh-hant/docs/tutorial/first-steps.md

    #### 定義一個 *路徑操作裝飾器*
    
    {* ../../docs_src/first_steps/tutorial001.py h1[6] *}
    
    `@app.get("/")` 告訴 **FastAPI** 那個函式負責處理請求:
    
    * 路徑 `/`
    * 使用 <abbr title="HTTP GET 方法"><code>get</code>操作</abbr>
    
    /// info | `@decorator` Info
    
    Python 中的 `@something` 語法被稱為「裝飾器」。
    
    你把它放在一個函式上面。像一個漂亮的裝飾帽子(我猜這是術語的來源)。
    
    一個「裝飾器」會對下面的函式做一些事情。
    
    在這種情況下,這個裝飾器告訴 **FastAPI** 那個函式對應於 **路徑** `/` 和 **操作** `get`.
    
    這就是「**路徑操作裝飾器**」。
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 09 12:20:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. docs/fa/docs/features.md

    * **قابل توسعه**:
        * Pydantic اجازه میدهد تا data type های سفارشی تعریف شوند یا میتوانید اعتبارسنجی را با روش هایی به روی مدل ها با <abbr title="دکوریتور های اعتبارسنج">validator decorator</abbr> گسترش دهید.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. 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
    
    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.py hl[1,13] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/settings.md

    ```Python
    def get_settings():
        return Settings()
    ```
    
    we would create that object for each request, and we would be reading the `.env` file for each request. ⚠️
    
    But as we are using the `@lru_cache` decorator on top, the `Settings` object will be created only once, the first time it's called. ✔️
    
    {* ../../docs_src/settings/app03_an_py39/main.py hl[1,11] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/events.md

    E a parte posterior do `yield` irá executar **após** a aplicação ser encerrada.
    
    ### Gerenciador de Contexto Assíncrono
    
    Se você verificar, a função está decorada com um `@asynccontextmanager`.
    
    Que converte a função em algo chamado de "**Gerenciador de Contexto Assíncrono**".
    
    {* ../../docs_src/events/tutorial003.py hl[1,13] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. docs/en/docs/alternatives.md

    compilation to JavaScript, it cannot rely on the types to define validation, serialization and documentation at the same time. Due to this and some design decisions, to get validation, serialization and automatic schema generation, it's needed to add decorators in many places. So, it becomes quite verbose.
    
    It can't handle nested models very well. So, if the JSON body in the request is a JSON object that has inner fields that in turn are nested JSON objects, it cannot be properly documented and...
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  9. 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.py hl[2,14:16] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/handling-errors.md

    Quando a requisição contém dados inválidos, **FastAPI** internamente lança para o `RequestValidationError`.
    
    Para sobrescrevê-lo, importe o `RequestValidationError` e use-o com o `@app.exception_handler(RequestValidationError)` para decorar o manipulador de exceções.
    
    {* ../../docs_src/handling_errors/tutorial004.py hl[2,14:16] *}
    
    Se você for ao `/items/foo`, em vez de receber o JSON padrão com o erro:
    
    ```JSON
    {
        "detail": [
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top