- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 180 for body (0.13 sec)
-
docs/em/docs/how-to/custom-request-and-route.md
🔨 👉, 👆 `GzipRequest` 🔜 ✊ 💅 🗜 📊 (🚥 💪) ⏭ 🚶♀️ ⚫️ 👆 *➡ 🛠️*. ⏮️ 👈, 🌐 🏭 ⚛ 🎏. ✋️ ↩️ 👆 🔀 `GzipRequest.body`, 📨 💪 🔜 🔁 🗜 🕐❔ ⚫️ 📐 **FastAPI** 🕐❔ 💪. ## 🔐 📨 💪 ⚠ 🐕🦺 !!! tip ❎ 👉 🎏 ⚠, ⚫️ 🎲 📚 ⏩ ⚙️ `body` 🛃 🐕🦺 `RequestValidationError` ([🚚 ❌](../tutorial/handling-errors.md#requestvalidationerror){.internal-link target=_blank}). ✋️ 👉 🖼 ☑ & ⚫️ 🎦 ❔ 🔗 ⏮️ 🔗 🦲.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/handling-errors.md
### 使用 `RequestValidationError` 的请求体 `RequestValidationError` 包含其接收到的无效数据请求的 `body` 。 开发时,可以用这个请求体生成日志、调试错误,并返回给用户。 ```Python hl_lines="14" {!../../../docs_src/handling_errors/tutorial005.py!} ``` 现在试着发送一个无效的 `item`,例如: ```JSON { "title": "towel", "size": "XL" } ``` 收到的响应包含 `body` 信息,并说明数据是无效的: ```JSON hl_lines="12-15" { "detail": [ {
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.4K bytes - Viewed (0) -
docs/es/docs/features.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10.9K bytes - Viewed (0) -
docs/en/docs/index.md
![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png) ## Example upgrade Now modify the file `main.py` to receive a body from a `PUT` request. Declare the body using standard Python types, thanks to Pydantic. ```Python hl_lines="4 9-12 25-27" from typing import Union from fastapi import FastAPI from pydantic import BaseModel
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 19.8K bytes - Viewed (0) -
docs/en/docs/advanced/path-operation-advanced-configuration.md
``` In this example, we didn't declare any Pydantic model. In fact, the request body is not even <abbr title="converted from some plain format, like bytes, into Python objects">parsed</abbr> as JSON, it is read directly as `bytes`, and the function `magic_data_reader()` would be in charge of parsing it in some way. Nevertheless, we can declare the expected schema for the request body. ### Custom OpenAPI content type
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolDeclarationOverridesProvider.kt
callableSymbol: KtFirSymbol<*>, crossinline process: (FirTypeScope, FirDeclaration) -> Unit ) { containingDeclaration.firSymbol.lazyResolveToPhase(FirResolvePhase.IMPLICIT_TYPES_BODY_RESOLVE) val firContainer = containingDeclaration.firSymbol.fir val firCallableDeclaration = callableSymbol.firSymbol.fir val firSession = callableSymbol.analysisSession.useSiteSession
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Fri Mar 22 14:22:10 GMT 2024 - 9.6K bytes - Viewed (0) -
docs/de/docs/index.md
## Beispiel Aktualisierung Ändern Sie jetzt die Datei `main.py`, um den <abbr title="Body – Körper, Inhalt: Der eigentliche Inhalt einer Nachricht, nicht die Metadaten">Body</abbr> einer `PUT`-Anfrage zu empfangen. Deklarieren Sie den Body mithilfe von Standard-Python-Typen, dank Pydantic. ```Python hl_lines="4 9-12 25-27" from typing import Union from fastapi import FastAPI
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 21.1K bytes - Viewed (0) -
docs/it/docs/index.md
![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png) ## Esempio più avanzato Adesso modifica il file `main.py` per ricevere un _body_ da una richiesta `PUT`. Dichiara il _body_ usando le annotazioni di tipo standard di Python, grazie a Pydantic. ```Python hl_lines="2 7-10 23-25" from fastapi import FastAPI from pydantic import BaseModel from typing import Optional
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 23:58:47 GMT 2024 - 19.3K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDataClassConverters.kt
) } add(FirErrors.ABSTRACT_FUNCTION_WITH_BODY) { firDiagnostic -> AbstractFunctionWithBodyImpl( firSymbolBuilder.callableBuilder.buildCallableSymbol(firDiagnostic.a), firDiagnostic as KtPsiDiagnostic, token, ) } add(FirErrors.NON_ABSTRACT_FUNCTION_WITH_NO_BODY) { firDiagnostic -> NonAbstractFunctionWithNoBodyImpl(
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Wed Apr 24 09:49:26 GMT 2024 - 208.3K bytes - Viewed (0) -
docs/fr/docs/index.md
* Puisque le paramètre `q` est déclaré avec `= None`, il est facultatif. * Sans le `None`, il serait nécessaire (comme l'est <abbr title="en anglais : body">le corps</abbr> de la requête dans le cas du `PUT`). * Pour les requêtes `PUT` vers `/items/{item_id}`, de lire <abbr title="en anglais : body">le corps</abbr> en <abbr title="JavaScript Object Notation">JSON</abbr> : * Vérifier qu'il a un attribut obligatoire `name` qui devrait être un `str`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 22K bytes - Viewed (0)