- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 924 for docs_src (0.05 sec)
-
docs/es/docs/tutorial/first-steps.md
{* ../../docs_src/first_steps/tutorial001_py39.py hl[7] *} Esta es una función de Python. Será llamada por **FastAPI** cuando reciba un request en la URL "`/`" usando una operación `GET`. En este caso, es una función `async`. --- También podrías definirla como una función normal en lugar de `async def`: {* ../../docs_src/first_steps/tutorial003_py39.py hl[7] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 13.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/response-status-code.md
Vamos ver o exemplo anterior novamente: {* ../../docs_src/response_status_code/tutorial001_py39.py hl[6] *} `201` é o código de status para "Criado". Mas você não precisa memorizar o que cada um desses códigos significa. Você pode usar as variáveis de conveniência de `fastapi.status`. {* ../../docs_src/response_status_code/tutorial002_py39.py hl[1,6] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.4K bytes - Viewed (0) -
docs/ru/docs/advanced/templates.md
```jinja hl_lines="4" {!../../docs_src/templates/templates/item.html!} ``` В этом примере будет создана ссылка на CSS-файл `static/styles.css` с помощью: ```CSS hl_lines="4" {!../../docs_src/templates/static/styles.css!} ```Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 5.1K bytes - Viewed (0) -
docs/es/docs/tutorial/dependencies/sub-dependencies.md
**FastAPI** se encargará de resolverlas. ## Primera dependencia "dependable" { #first-dependency-dependable } Podrías crear una primera dependencia ("dependable") así: {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *} Declara un parámetro de query opcional `q` como un `str`, y luego simplemente lo devuelve.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.9K bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial009.py
from pathlib import Path from fastapi.testclient import TestClient from docs_src.custom_response import tutorial009_py39 from docs_src.custom_response.tutorial009_py39 import app client = TestClient(app) def test_get(tmp_path: Path): file_path: Path = tmp_path / "large-video-file.mp4" tutorial009_py39.some_file_path = str(file_path) test_content = b"Fake video bytes" file_path.write_bytes(test_content)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 502 bytes - Viewed (0) -
docs/de/docs/advanced/response-headers.md
Und dann können Sie Header in diesem *vorübergehenden* <abbr title="Response – Antwort: Daten, die der Server zum anfragenden Client zurücksendet">Response</abbr>-Objekt festlegen. {* ../../docs_src/response_headers/tutorial002_py39.py hl[1, 7:8] *} Anschließend können Sie wie gewohnt jedes gewünschte Objekt zurückgeben (ein `dict`, ein Datenbankmodell, usw.).
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.8K bytes - Viewed (2) -
docs/en/docs/advanced/response-headers.md
You can declare a parameter of type `Response` in your *path operation function* (as you can do for cookies). And then you can set headers in that *temporal* response object. {* ../../docs_src/response_headers/tutorial002_py39.py hl[1, 7:8] *} And then you can return any object you need, as you normally would (a `dict`, a database model, etc).Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.3K bytes - Viewed (0) -
docs/tr/docs/tutorial/request-forms.md
/// ## `Form` Sınıfını Projenize Dahil Edin `Form` sınıfını `fastapi`'den projenize dahil edin: {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *} ## `Form` Parametrelerini Tanımlayın Form parametrelerini `Body` veya `Query` için yaptığınız gibi oluşturun: {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[9] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/request-form-models.md
```console $ pip install python-multipart ``` /// /// note 自 FastAPI 版本 `0.113.0` 起支持此功能。🤓 /// ## 表单的 Pydantic 模型 您只需声明一个 **Pydantic 模型**,其中包含您希望接收的**表单字段**,然后将参数声明为 `Form` : {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *} **FastAPI** 将从请求中的**表单数据**中**提取**出**每个字段**的数据,并提供您定义的 Pydantic 模型。 ## 检查文档 您可以在文档 UI 中验证它,地址为 `/docs` : <div class="screenshot">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 10 20:36:08 UTC 2024 - 2.1K bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial013.py
from docs_src.python_types.tutorial013_py39 import say_hello def test_say_hello():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 136 bytes - Viewed (0)