- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 478 for declare (0.04 seconds)
-
docs/en/docs/advanced/events.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.9K bytes - Click Count (0) -
docs/en/docs/reference/background.md
# Background Tasks - `BackgroundTasks` You can declare a parameter in a *path operation function* or dependency function with the type `BackgroundTasks`, and then you can use it to schedule the execution of background tasks after the response is sent. You can import it directly from `fastapi`: ```python from fastapi import BackgroundTasks ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 377 bytes - Click Count (0) -
docs/en/docs/advanced/advanced-dependencies.md
## Parameterized dependencies { #parameterized-dependencies } All the dependencies we have seen are a fixed function or class. But there could be cases where you want to be able to set parameters on the dependency, without having to declare many different functions or classes. Let's imagine that we want to have a dependency that checks if the query parameter `q` contains some fixed content. But we want to be able to parameterize that fixed content.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Nov 13 07:37:15 GMT 2025 - 9.1K bytes - Click Count (0) -
docs/en/docs/reference/request.md
# `Request` class You can declare a parameter in a *path operation function* or dependency to be of type `Request` and then you can access the raw request object directly, without any validation, etc. You can import it directly from `fastapi`: ```python from fastapi import Request ``` /// tip
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Aug 06 04:48:30 GMT 2024 - 518 bytes - Click Count (0) -
android/guava/src/com/google/common/collect/EvictingQueue.java
@J2ktIncompatible // Incompatible return type change. Use inherited implementation public Object[] toArray() { /* * If we could, we'd declare the no-arg `Collection.toArray()` to return "Object[] but elements * have the same nullness as E." Since we can't, we declare it to return nullable elements, and * we can override it in our non-null-guaranteeing subtypes to present a better signature to * their users. *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 4.6K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
## Dependencies errors and return values { #dependencies-errors-and-return-values } You can use the same dependency *functions* you use normally. ### Dependency requirements { #dependency-requirements } They can declare request requirements (like headers) or other sub-dependencies: {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[8,13] *} ### Raise exceptions { #raise-exceptions }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 2.9K bytes - Click Count (0) -
docs/en/docs/advanced/using-request-directly.md
Note that in this case, we are declaring a path parameter beside the request parameter. So, the path parameter will be extracted, validated, converted to the specified type and annotated with OpenAPI. The same way, you can declare any other parameter as normally, and additionally, get the `Request` too. /// ## `Request` documentation { #request-documentation }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.4K bytes - Click Count (0) -
docs/es/docs/tutorial/header-params.md
## Importar `Header` { #import-header } Primero importa `Header`: {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *} ## Declarar parámetros de `Header` { #declare-header-parameters } Luego declara los parámetros de header usando la misma estructura que con `Path`, `Query` y `Cookie`. Puedes definir el valor por defecto así como toda la validación extra o los parámetros de anotaciones:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 3.2K bytes - Click Count (0) -
docs/es/docs/tutorial/body-nested-models.md
Esto hará que `tags` sea una lista, aunque no declare el tipo de los elementos de la lista. ## Campos de lista con parámetro de tipo { #list-fields-with-type-parameter } Pero Python tiene una forma específica de declarar listas con tipos internos, o "parámetros de tipo": ### Declarar una `list` con un parámetro de tipo { #declare-a-list-with-a-type-parameter }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.2K bytes - Click Count (0) -
docs/pt/docs/tutorial/body-nested-models.md
Isso fará com que tags seja uma lista de itens mesmo sem declarar o tipo dos elementos desta lista. ## Campos do tipo Lista com um parâmetro de tipo { #list-fields-with-type-parameter } Mas o Python tem uma maneira específica de declarar listas com tipos internos ou "parâmetros de tipo": ### Declare uma `list` com um parâmetro de tipo { #declare-a-list-with-a-type-parameter }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.4K bytes - Click Count (0)