- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 883 for _body (0.01 sec)
-
docs_src/custom_request_and_route/tutorial001_an_py39.py
from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body) self._body = body return self._body
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 988 bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial001_py310.py
from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body) self._body = body return self._body
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 976 bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial001_py39.py
from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body) self._body = body return self._body
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 967 bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial001_an_py310.py
from typing import Annotated from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body) self._body = body return self._body
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 1015 bytes - Viewed (0) -
docs/es/docs/tutorial/body.md
# Request Body { #request-body } Cuando necesitas enviar datos desde un cliente (digamos, un navegador) a tu API, los envías como un **request body**. Un **request** body es un dato enviado por el cliente a tu API. Un **response** body es el dato que tu API envía al cliente.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.6K bytes - Viewed (0) -
docs/de/docs/tutorial/body.md
/// ## Ohne Pydantic { #without-pydantic }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 24 10:28:19 UTC 2025 - 7.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/body.md
/// ## Sem o Pydantic { #without-pydantic }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.9K bytes - Viewed (0) -
docs/zh/docs/tutorial/body.md
Pydantic 模型的 JSON 概图是 OpenAPI 生成的概图部件,可在 API 文档中显示: <img src="/img/tutorial/body/image01.png"> 而且,还会用于 API 文档中使用了概图的*路径操作*: <img src="/img/tutorial/body/image02.png"> ## 编辑器支持 在编辑器中,函数内部均可使用类型提示、代码补全(如果接收的不是 Pydantic 模型,而是**字典**,就没有这样的支持): <img src="/img/tutorial/body/image03.png"> 还支持检查错误的类型操作: <img src="/img/tutorial/body/image04.png"> 这并非偶然,整个 **FastAPI** 框架都是围绕这种思路精心设计的。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 5.5K bytes - Viewed (0) -
docs/en/docs/tutorial/body.md
# Request Body { #request-body } When you need to send data from a client (let's say, a browser) to your API, you send it as a **request body**. A **request** body is data sent by the client to your API. A **response** body is the data your API sends to the client.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 6.8K bytes - Viewed (0) -
docs/fr/docs/tutorial/body.md
Commencez par importer la classe `BaseModel` du module `pydantic` : {* ../../docs_src/body/tutorial001.py hl[4] *} ## Créez votre modèle de données Déclarez ensuite votre modèle de données en tant que classe qui hérite de `BaseModel`. Utilisez les types Python standard pour tous les attributs : {* ../../docs_src/body/tutorial001.py hl[7:11] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 7.6K bytes - Viewed (0)