Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for decorado (0.16 sec)

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

    !!! info "Información sobre `@decorator`"
        Esa sintaxis `@algo` se llama un "decorador" en Python.
    
        Lo pones encima de una función. Es como un lindo sombrero decorado (creo que de ahí salió el concepto).
    
        Un "decorador" toma la función que tiene debajo y hace algo con ella.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  2. docs/es/docs/features.md

    * **Extensible**:
        * Pydantic permite que se definan tipos de datos a la medida o puedes extender la validación con métodos en un modelo decorado con el <abbr title="en inglés: validator decorator"> decorador de validación</abbr>.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  3. docs/pt/docs/features.md

    * **Extensível**:
        * Pydantic permite que tipos de dados personalizados sejam definidos ou você pode estender a validação com métodos em um modelo decorado com seu decorador de validador.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. tests/test_dependency_overrides.py

                    }
                ]
            }
        )
    
    
    def test_decorator_depends_q_foo():
        response = client.get("/decorator-depends/?q=foo")
        assert response.status_code == 200
        assert response.json() == {"in": "decorator-depends"}
    
    
    def test_decorator_depends_q_foo_skip_100_limit_200():
        response = client.get("/decorator-depends/?q=foo&skip=100&limit=200")
        assert response.status_code == 200
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. 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()`
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/custom-response.md

    But you can also declare the `Response` that you want to be used, in the *path operation decorator*.
    
    The contents that you return from your *path operation function* will be put inside of that `Response`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  7. docs/tr/docs/tutorial/first-steps.md

    * <abbr title="Bir HTTP GET metodu"><code>get</code> operasyonu</abbr> ile
    * `/` 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.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Feb 08 13:10:55 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  8. 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.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

      interface Backend {
        fun nanoTime(): Long
    
        fun coordinatorNotify(taskRunner: TaskRunner)
    
        fun coordinatorWait(
          taskRunner: TaskRunner,
          nanos: Long,
        )
    
        fun <T> decorate(queue: BlockingQueue<T>): BlockingQueue<T>
    
        fun execute(
          taskRunner: TaskRunner,
          runnable: Runnable,
        )
      }
    
      class RealBackend(threadFactory: ThreadFactory) : Backend {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/first-steps.md

    #### Определите *декоратор операции пути (path operation decorator)*
    
    ```Python hl_lines="6"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Декоратор `@app.get("/")` указывает **FastAPI**, что функция, прямо под ним, отвечает за обработку запросов, поступающих по адресу:
    
    * путь `/`
    * использующих <abbr title="HTTP GET метод"><code>get</code> операцию</abbr>
    
    !!! info "`@decorator` Дополнительная информация"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.1K bytes
    - Viewed (0)
Back to top