- Sort Score
- Result 10 results
- Languages All
Results 1071 - 1080 of 1,568 for MD (0.02 sec)
-
docs/es/docs/advanced/response-change-status-code.md
# Response - Cambiar Código de Estado { #response-change-status-code } Probablemente leíste antes que puedes establecer un [Código de Estado de Response](../tutorial/response-status-code.md){.internal-link target=_blank} por defecto. Pero en algunos casos necesitas devolver un código de estado diferente al predeterminado. ## Caso de uso { #use-case } Por ejemplo, imagina que quieres devolver un código de estado HTTP de "OK" `200` por defecto.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/zh/docs/advanced/response-change-status-code.md
# 响应 - 更改状态码 你可能之前已经了解到,你可以设置默认的[响应状态码](../tutorial/response-status-code.md){.internal-link target=_blank}。 但在某些情况下,你需要返回一个不同于默认值的状态码。 ## 使用场景 例如,假设你想默认返回一个HTTP状态码为“OK”`200`。 但如果数据不存在,你想创建它,并返回一个HTTP状态码为“CREATED”`201`。 但你仍然希望能够使用`response_model`过滤和转换你返回的数据。 对于这些情况,你可以使用一个`Response`参数。 ## 使用 `Response` 参数 你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies和头部做的那样)。 然后你可以在这个*临时*响应对象中设置`status_code`。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 1.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params-numeric-validations.md
因此,`0.5` 将是有效值。但是 `0.0`或 `0` 不是。 对于 <abbr title="less than"><code>lt</code></abbr> 也是一样的。 {* ../../docs_src/path_params_numeric_validations/tutorial006.py hl[11] *} ## 总结 你能够以与 [查询参数和字符串校验](query-params-str-validations.md){.internal-link target=_blank} 相同的方式使用 `Query`、`Path`(以及其他你还没见过的类)声明元数据和字符串校验。 而且你还可以声明数值校验: * `gt`:大于(`g`reater `t`han) * `ge`:大于等于(`g`reater than or `e`qual) * `lt`:小于(`l`ess `t`han)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-params-numeric-validations.md
<abbr title="less than"><code>lt</code></abbr> 역시 마찬가지입니다. {* ../../docs_src/path_params_numeric_validations/tutorial006.py hl[11] *} ## 요약 `Query`, `Path`(아직 보지 못한 다른 것들도)를 사용하면 [쿼리 매개변수와 문자열 검증](query-params-str-validations.md){.internal-link target=_blank}에서와 마찬가지로 메타데이터와 문자열 검증을 선언할 수 있습니다. 그리고 숫자 검증 또한 선언할 수 있습니다: * `gt`: 크거나(`g`reater `t`han) * `ge`: 크거나 같은(`g`reater than or `e`qual) * `lt`: 작거나(`l`ess `t`han)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 5.4K bytes - Viewed (0) -
docs/en/docs/how-to/custom-request-and-route.md
### Create a custom `GzipRequest` class { #create-a-custom-gziprequest-class } /// tip This is a toy example to demonstrate how it works, if you need Gzip support, you can use the provided [`GzipMiddleware`](../advanced/middleware.md#gzipmiddleware){.internal-link target=_blank}. /// First, we create a `GzipRequest` class, which will overwrite the `Request.body()` method to decompress the body in the presence of an appropriate header.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 4.6K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
Aber in realen Fällen würden Sie bei der Implementierung von Sicherheit mehr Vorteile durch die Verwendung der integrierten [Sicherheits-Werkzeuge (siehe nächstes Kapitel)](../security/index.md){.internal-link target=_blank} erzielen. /// ## Abhängigkeitsfehler und -Rückgabewerte { #dependencies-errors-and-return-values }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 15:10:09 UTC 2025 - 3.5K bytes - Viewed (0) -
docs/uk/docs/tutorial/path-params-numeric-validations.md
Якщо у Вас стара версія, при спробі використати `Annotated` можуть виникати помилки. Переконайтеся, що Ви [оновили версію FastAPI](../deployment/versions.md#upgrading-the-fastapi-versions){.internal-link target=_blank} принаймні до версії 0.95.1 перед використанням `Annotated`. /// ## Оголошення метаданих Ви можете оголошувати всі ті ж параметри, що і для `Query`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 16:27:21 UTC 2025 - 9.7K bytes - Viewed (0) -
docs/es/docs/tutorial/query-params-str-validations.md
/// ## Usar `Annotated` en el tipo del parámetro `q` { #use-annotated-in-the-type-for-the-q-parameter }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 18.4K bytes - Viewed (0) -
docs/es/docs/tutorial/request-forms-and-files.md
Para recibir archivos subidos y/o form data, primero instala <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. Asegúrate de crear un [entorno virtual](../virtual-environments.md){.internal-link target=_blank}, actívalo y luego instálalo, por ejemplo: ```console $ pip install python-multipart ``` /// ## Importa `File` y `Form` { #import-file-and-form }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 1.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/request-forms-and-files.md
Certifique-se de criar um [ambiente virtual](../virtual-environments.md){.internal-link target=_blank}, ativá-lo e então instalar, por exemplo: ```console $ pip install python-multipart ``` /// ## Importe `File` e `Form` { #import-file-and-form }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 1.6K bytes - Viewed (0)