- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 144 for decorators (0.05 sec)
-
docs/pt/docs/tutorial/first-steps.md
Você o coloca em cima de uma função. Como um chapéu decorativo (acho que é daí que vem o termo). Um "decorador" pega a função abaixo e faz algo com ela. Em nosso caso, este decorador informa ao **FastAPI** que a função abaixo corresponde a **rota** `/` com uma **operação** `get`. É o "**decorador de rota**". /// Você também pode usar as outras operações: * `@app.post()` * `@app.put()` * `@app.delete()`
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Thu Jan 09 20:41:07 UTC 2025 - 10.8K bytes - Viewed (0) -
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) -
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) -
android/guava/src/com/google/common/util/concurrent/ForwardingListeningExecutorService.java
* service. Subclasses should override one or more methods to modify the behavior of the backing * executor service as desired per the <a * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>. * * <p><b>{@code default} method warning:</b> This class does <i>not</i> forward calls to {@code * default} methods. Instead, it inherits their default implementations. When those implementations
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.2K bytes - Viewed (0) -
docs/en/docs/tutorial/middleware.md
/// ## Create a middleware { #create-a-middleware } To create a middleware you use the decorator `@app.middleware("http")` on top of a function. The middleware function receives: * The `request`. * A function `call_next` that will receive the `request` as a parameter.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4.1K bytes - Viewed (0) -
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) -
docs/de/docs/tutorial/response-model.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 16.9K bytes - Viewed (0) -
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) -
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) -
guava/src/com/google/common/collect/ForwardingObject.java
import com.google.common.annotations.GwtCompatible; import java.io.Serializable; /** * An abstract base class for implementing the <a * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>. The {@link * #delegate()} method must be overridden to return the instance being decorated. * * <p>This class does <i>not</i> forward the {@code hashCode} and {@code equals} methods through to
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3K bytes - Viewed (0)