Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for Decorator (0.06 sec)

  1. docs/en/docs/tutorial/first-steps.md

    You put it on top of a function. Like a pretty decorative hat (I guess that's where the term came from).
    
    A "decorator" takes the function below and does something with it.
    
    In our case, this decorator tells **FastAPI** that the function below corresponds to the **path** `/` with an **operation** `get`.
    
    It is the "**path operation decorator**".
    
    ///
    
    You can also use the other operations:
    
    * `@app.post()`
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/first-steps.md

    Lo pones encima de una función. Como un bonito sombrero decorativo (supongo que de ahí viene el término).
    
    Un "decorador" toma la función de abajo y hace algo con ella.
    
    En nuestro caso, este decorador le dice a **FastAPI** que la función de abajo corresponde al **path** `/` con una **operation** `get`.
    
    Es el "**path operation decorator**".
    
    ///
    
    También puedes usar las otras operaciones:
    
    * `@app.post()`
    * `@app.put()`
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 17:46:44 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. docs/vi/docs/tutorial/first-steps.md

    Bạn đặt nó trên một hàm. Giống như một chiếc mũ xinh xắn (Tôi ddonas đó là lí do mà thuật ngữ này ra đời).
    
    Một "decorator" lấy một hàm bên dưới và thực hiện một vài thứ với nó.
    
    Trong trường hợp của chúng ta, decorator này nói **FastAPI** rằng hàm bên dưới ứng với **đường dẫn** `/` và một **toán tử** `get`.
    
    Nó là một "**decorator đường dẫn toán tử**".
    
    ///
    
    Bạn cũng có thể sử dụng với các toán tử khác:
    
    * `@app.post()`
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Nov 10 16:58:43 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/custom-response.md

    Pero también puedes declarar el `Response` que quieres usar (por ejemplo, cualquier subclase de `Response`), en el *path operation decorator* usando el parámetro `response_class`.
    
    Los contenidos que devuelvas desde tu *path operation function* se colocarán dentro de esa `Response`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. docs/tr/docs/tutorial/first-steps.md

    * `/` yoluna gelen istekler
    
    /// info | `@decorator` Bilgisi
    
    Python'da `@something` sözdizimi "<abbr title="Decorator">dekoratör</abbr>" olarak adlandırılır.
    
    Dekoratörler, dekoratif bir şapka gibi (sanırım terim buradan geliyor) fonksiyonların üzerlerine yerleştirilirler.
    
    Bir "dekoratör" hemen altında bulunan fonksiyonu alır ve o fonksiyon ile bazı işlemler gerçekleştirir.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/first-steps.md

    #### Определите *декоратор операции пути (path operation decorator)*
    
    {* ../../docs_src/first_steps/tutorial001.py hl[6] *}
    
    Декоратор `@app.get("/")` указывает **FastAPI**, что функция, прямо под ним, отвечает за обработку запросов, поступающих по адресу:
    
    * путь `/`
    * использующих <abbr title="HTTP GET метод"><code>get</code> операцию</abbr>
    
    /// info | `@decorator` Дополнительная информация
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/first-steps.md

    #### Визначте декоратор операції шляху (path operation decorator)
    
    {* ../../docs_src/first_steps/tutorial001.py hl[6] *}
    Декоратор `@app.get("/")` вказує **FastAPI**, що функція нижче, відповідає за обробку запитів, які надходять до неї:
    
    * шлях `/`
    * використовуючи <abbr title="an HTTP GET method"><code>get</code> операцію</abbr>
    
    /// info | `@decorator` Додаткова інформація
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/custom-response.md

    But you can also declare the `Response` that you want to be used (e.g. any `Response` subclass), in the *path operation decorator* using the `response_class` parameter.
    
    The contents that you return from your *path operation function* will be put inside of that `Response`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/response-model.md

    In those cases, you can use the *path operation decorator* parameter `response_model` instead of the return type.
    
    You can use the `response_model` parameter in any of the *path operations*:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * etc.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 16K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        return (list instanceof RandomAccess)
            ? new RandomAccessWrappedList(key, list, ancestor)
            : new WrappedList(key, list, ancestor);
      }
    
      /**
       * Collection decorator that stays in sync with the multimap values for a key. There are two kinds
       * of wrapped collections: full and subcollections. Both have a delegate pointing to the
       * underlying collection class.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Aug 12 15:51:57 UTC 2025
    - 48.2K bytes
    - Viewed (0)
Back to top