- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 121 for tutorial001_03_py39 (0.08 sec)
-
docs/uk/docs/tutorial/request-files.md
/// ## Імпорт `File` Імпортуйте `File` та `UploadFile` з `fastapi`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *} ## Визначення параметрів `File` Створіть параметри файлів так само як Ви б створювали `Body` або `Form`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *} /// info | Інформація `File` — це клас, який безпосередньо успадковує `Form`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Feb 22 22:01:44 UTC 2025 - 11.2K bytes - Viewed (0) -
docs/ru/docs/tutorial/request-files.md
Импортируйте `File` и `UploadFile` из модуля `fastapi`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *} ## Определите параметры `File` { #define-file-parameters } Создайте параметры `File` так же, как вы это делаете для `Body` или `Form`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *} /// info | Дополнительная информацияRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 11.7K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
## Import `File` { #import-file } Import `File` and `UploadFile` from `fastapi`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *} ## Define `File` Parameters { #define-file-parameters } Create file parameters the same way you would for `Body` or `Form`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *} /// info `File` is a class that inherits directly from `Form`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/request-files.md
Importe `File` e `UploadFile` de `fastapi`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *} ## Definir Parâmetros `File` { #define-file-parameters } Crie parâmetros de arquivo da mesma forma que você faria para `Body` ou `Form`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *} /// info | Informação `File` é uma classe que herda diretamente de `Form`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 8.1K bytes - Viewed (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial001_01.py
from fastapi.testclient import TestClient from docs_src.behind_a_proxy.tutorial001_01_py39 import app client = TestClient( app, base_url="https://example.com", follow_redirects=False, ) def test_redirect() -> None: response = client.get("/items") assert response.status_code == 307 assert response.headers["location"] == "https://example.com/items/" def test_no_redirect() -> None:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 544 bytes - Viewed (0) -
docs/de/docs/tutorial/request-files.md
Importieren Sie `File` und `UploadFile` von `fastapi`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *} ## `File`-Parameter definieren { #define-file-parameters } Erstellen Sie Datei-Parameter, so wie Sie es auch mit `Body` und `Form` machen würden: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *} /// info | Info `File` ist eine Klasse, die direkt von `Form` erbt.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 15:10:09 UTC 2025 - 8.7K bytes - Viewed (0) -
tests/test_tutorial/test_metadata/test_tutorial001_1.py
from fastapi.testclient import TestClient from docs_src.metadata.tutorial001_1_py39 import app client = TestClient(app) def test_items(): response = client.get("/items/") assert response.status_code == 200, response.text assert response.json() == [{"name": "Katana"}] def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/response-model.md
### Аннотировать подкласс Response { #annotate-a-response-subclass } Вы также можете использовать подкласс `Response` в аннотации типа: {* ../../docs_src/response_model/tutorial003_03_py39.py hl[8:9] *} Это тоже сработает, так как `RedirectResponse` — подкласс `Response`, и FastAPI автоматически обработает этот случай. ### Некорректные аннотации возвращаемых типов { #invalid-return-type-annotations }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 25.8K bytes - Viewed (0) -
tests/test_tutorial/test_authentication_error_status_code/test_tutorial001.py
import importlib import pytest from fastapi.testclient import TestClient from inline_snapshot import snapshot @pytest.fixture( name="client", params=[ "tutorial001_an_py39", ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module( f"docs_src.authentication_error_status_code.{request.param}" ) client = TestClient(mod.app) return client
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.9K bytes - Viewed (0) -
docs/en/docs/tutorial/security/first-steps.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 8.4K bytes - Viewed (0)