- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 278 for starlette (0.19 sec)
-
docs/zh/docs/tutorial/static-files.md
```Python hl_lines="2 6" {!../../../docs_src/static_files/tutorial001.py!} ``` !!! note "技术细节" 你也可以用 `from starlette.staticfiles import StaticFiles`。 **FastAPI** 提供了和 `starlette.staticfiles` 相同的 `fastapi.staticfiles` ,只是为了方便你,开发者。但它确实来自Starlette。 ### 什么是"挂载"(Mounting) "挂载" 表示在特定路径添加一个完全"独立的"应用,然后负责处理所有子路径。 这与使用`APIRouter`不同,因为安装的应用程序是完全独立的。OpenAPI和来自你主应用的文档不会包含已挂载应用的任何东西等等。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jun 03 12:49:32 GMT 2023 - 1.4K bytes - Viewed (0) -
docs/ja/docs/features.md
* 本番アプリケーションで使用されます ## Starletteの機能 **FastAPI**は、<a href="https://www.starlette.io/" class="external-link" target="_blank"><strong>Starlette </strong></a>と完全に互換性があります(そしてベースになっています)。したがって、追加のStarletteコードがあれば、それも機能します。 `FastAPI`は実際には`Starlette`のサブクラスです。したがって、Starletteをすでに知っているか使用している場合は、ほとんどの機能が同じように機能します。 **FastAPI**を使用すると、以下のような、**Starlette**のすべての機能を利用できます(FastAPIはStarletteを強化したものにすぎないため):
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.3K bytes - Viewed (0) -
docs/en/docs/how-to/graphql.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 19 19:54:04 GMT 2023 - 3.4K bytes - Viewed (0) -
fastapi/exception_handlers.py
from fastapi.utils import is_body_allowed_for_status_code from fastapi.websockets import WebSocket from starlette.exceptions import HTTPException from starlette.requests import Request from starlette.responses import JSONResponse, Response from starlette.status import HTTP_422_UNPROCESSABLE_ENTITY, WS_1008_POLICY_VIOLATION async def http_exception_handler(request: Request, exc: HTTPException) -> Response:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jun 11 19:08:14 GMT 2023 - 1.3K bytes - Viewed (0) -
fastapi/websockets.py
from starlette.websockets import WebSocket as WebSocket # noqa from starlette.websockets import WebSocketDisconnect as WebSocketDisconnect # noqa
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Sep 04 15:12:10 GMT 2022 - 222 bytes - Viewed (0) -
docs/ja/docs/alternatives.md
`FastAPI`クラスそのものは、`Starlette`クラスを直接継承しています。 基本的にはStarletteの強化版であるため、Starletteで可能なことは**FastAPI**で直接可能です。 ### <a href="https://www.uvicorn.org/" class="external-link" target="_blank">Uvicorn</a> Uvicornは非常に高速なASGIサーバーで、uvloopとhttptoolsにより構成されています。 ウェブフレームワークではなくサーバーです。例えば、パスルーティングのツールは提供していません。それらは、Starlette (や**FastAPI**) のようなフレームワークがその上で提供するものです。 Starletteや**FastAPI**のサーバーとして推奨されています。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 31.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/handling-errors.md
```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` !!! note "技术细节" `from starlette.requests import Request` 和 `from starlette.responses import JSONResponse` 也可以用于导入 `Request` 和 `JSONResponse`。 **FastAPI** 提供了与 `starlette.responses` 相同的 `fastapi.responses` 作为快捷方式,但大部分响应操作都可以直接从 Starlette 导入。同理,`Request` 也是如此。 ## 覆盖默认异常处理器 **FastAPI** 自带了一些默认异常处理器。
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/fr/docs/alternatives.md
Maintenant, APIStar est un ensemble d'outils pour valider les spécifications OpenAPI, et non un framework web. !!! info APIStar a été créé par Tom Christie. Le même gars qui a créé : * Django REST Framework * Starlette (sur lequel **FastAPI** est basé) * Uvicorn (utilisé par Starlette et **FastAPI**) !!! check "A inspiré **FastAPI** à"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 27.5K bytes - Viewed (0) -
docs/zh/docs/advanced/templates.md
!!! tip "提示" 通过声明 `response_class=HTMLResponse`,API 文档就能识别响应的对象是 HTML。 !!! note "技术细节" 您还可以使用 `from starlette.templating import Jinja2Templates`。 **FastAPI** 的 `fastapi.templating` 只是为开发者提供的快捷方式。实际上,绝大多数可用响应都直接继承自 Starlette。 `Request` 与 `StaticFiles` 也一样。 ## 编写模板 编写模板 `templates/item.html`,代码如下: ```jinja hl_lines="7" {!../../../docs_src/templates/templates/item.html!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 22:45:16 GMT 2024 - 2.2K bytes - Viewed (0) -
docs/pt/docs/alternatives.md
Ele não era mais um framework web API, como o criador precisava focar no Starlette. Agora APIStar é um conjunto de ferramentas para validar especificações OpenAPI, não um framework web. !!! info APIStar foi criado por Tom Christie. O mesmo cara que criou: * Django REST Framework * Starlette (no qual **FastAPI** é baseado) * Uvicorn (usado por Starlette e **FastAPI**) !!! check "**FastAPI** inspirado para"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 25.5K bytes - Viewed (0)