- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 65 for tutorial003_05_py310 (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/zh/docs/tutorial/header-params.md
/// ## 重复的请求头 有时,可能需要接收重复的请求头。即同一个请求头有多个值。 类型声明中可以使用 `list` 定义多个请求头。 使用 Python `list` 可以接收重复请求头所有的值。 例如,声明 `X-Token` 多次出现的请求头,可以写成这样: {* ../../docs_src/header_params/tutorial003_an_py310.py hl[9] *} 与*路径操作*通信时,以下面的方式发送两个 HTTP 请求头: ``` X-Token: foo X-Token: bar ``` 响应结果是: ```JSON { "X-Token values": [ "bar", "foo" ] } ```Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 2.5K bytes - Click Count (0) -
docs/en/docs/tutorial/header-params.md
You will receive all the values from the duplicate header as a Python `list`. For example, to declare a header of `X-Token` that can appear more than once, you can write: {* ../../docs_src/header_params/tutorial003_an_py310.py hl[9] *} If you communicate with that *path operation* sending two HTTP headers like: ``` X-Token: foo X-Token: bar ``` The response would be like: ```JSON {Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 3K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial003.py
@pytest.fixture( name="client", params=[ pytest.param("tutorial003_py39"), pytest.param("tutorial003_py310", marks=needs_py310), pytest.param("tutorial003_an_py39"), pytest.param("tutorial003_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.security.{request.param}") client = TestClient(mod.app) return client
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.7K bytes - Click Count (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial003.py
@pytest.fixture( name="client", params=[ pytest.param("tutorial003_py39"), pytest.param("tutorial003_py310", marks=needs_py310), pytest.param("tutorial003_an_py39"), pytest.param("tutorial003_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module( f"docs_src.query_params_str_validations.{request.param}" )
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 5.1K bytes - Click Count (0) -
docs/uk/docs/tutorial/header-params.md
Ви отримаєте всі значення дубльованого заголовка у вигляді `list` у Python. Наприклад, щоб оголосити заголовок `X-Token`, який може з’являтися більше ніж один раз: {* ../../docs_src/header_params/tutorial003_an_py310.py hl[9] *} Якщо Ви взаємодієте з цією операцією шляху, надсилаючи два HTTP-заголовки, наприклад: ``` X-Token: foo X-Token: bar ``` Відповідь буде така: ```JSON {Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Feb 22 22:02:19 GMT 2025 - 4.4K bytes - Click Count (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02.py
from inline_snapshot import snapshot from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial001_02_py39"), pytest.param("tutorial001_02_py310", marks=needs_py310), pytest.param("tutorial001_02_an_py39"), pytest.param("tutorial001_02_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.4K bytes - Click Count (0) -
docs/de/docs/tutorial/header-param-models.md
Falls Sie aus irgendeinem Grund diese automatische Umwandlung deaktivieren müssen, können Sie dies auch für Pydantic-Modelle für Header-Parameter tun. {* ../../docs_src/header_param_models/tutorial003_an_py310.py hl[19] *} /// warning | Achtung Bevor Sie `convert_underscores` auf `False` setzen, bedenken Sie, dass einige HTTP-Proxies und -Server die Verwendung von Headern mit Unterstrichen nicht zulassen. ///Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 20 15:10:09 GMT 2025 - 3.1K bytes - Click Count (0) -
docs/en/docs/tutorial/header-param-models.md
If for some reason you need to disable this automatic conversion, you can do it as well for Pydantic models for header parameters. {* ../../docs_src/header_param_models/tutorial003_an_py310.py hl[19] *} /// warning Before setting `convert_underscores` to `False`, bear in mind that some HTTP proxies and servers disallow the usage of headers with underscores. /// ## Summary { #summary }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 2.6K bytes - Click Count (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial003.py
@pytest.fixture( name="client", params=[ "tutorial003_py39", pytest.param("tutorial003_py310", marks=needs_py310), "tutorial003_an_py39", pytest.param("tutorial003_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body_multiple_params.{request.param}") client = TestClient(mod.app)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.4K bytes - Click Count (0) -
docs/es/docs/tutorial/header-params.md
Recibirás todos los valores del header duplicado como una `list` de Python. Por ejemplo, para declarar un header de `X-Token` que puede aparecer más de una vez, puedes escribir: {* ../../docs_src/header_params/tutorial003_an_py310.py hl[9] *} Si te comunicas con esa *path operation* enviando dos headers HTTP como: ``` X-Token: foo X-Token: bar ``` El response sería como: ```JSON { "X-Token values": [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)