- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 981 for tutorial002_py310 (0.17 seconds)
-
docs/ja/docs/advanced/stream-data.md
例えば、`media_type` 属性で `Content-Type` を `image/png` に設定する `PNGStreamingResponse` を作成できます: {* ../../docs_src/stream_data/tutorial002_py310.py ln[6,19:20] hl[20] *} その後、path operation 関数で `response_class=PNGStreamingResponse` としてこの新しいクラスを使用できます: {* ../../docs_src/stream_data/tutorial002_py310.py ln[23:27] hl[23] *} ### ファイルを模擬する { #simulate-a-file }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:55:22 GMT 2026 - 6.7K bytes - Click Count (0) -
docs/zh-hant/docs/how-to/custom-docs-ui-assets.md
├── swagger-ui-bundle.js └── swagger-ui.css ``` ### 提供靜態檔案 { #serve-the-static-files } * 匯入 `StaticFiles`。 * 在特定路徑「掛載」一個 `StaticFiles()` 實例。 {* ../../docs_src/custom_docs_ui/tutorial002_py310.py hl[7,11] *} ### 測試靜態檔案 { #test-the-static-files } 啟動你的應用並前往 [http://127.0.0.1:8000/static/redoc.standalone.js](http://127.0.0.1:8000/static/redoc.standalone.js)。 你應該會看到一個很長的 **ReDoc** JavaScript 檔案。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 6.9K bytes - Click Count (0) -
docs/zh/docs/tutorial/body-updates.md
然后再用它生成一个只含已设置(在请求中发送)数据、且省略默认值的 `dict`: {* ../../docs_src/body_updates/tutorial002_py310.py hl[32] *} ### 使用 Pydantic 的 `update` 参数 { #using-pydantics-update-parameter } 接下来,用 `.model_copy()` 为已有模型创建副本,并传入 `update` 参数,值为包含更新数据的 `dict`。 例如,`stored_item_model.model_copy(update=update_data)`: {* ../../docs_src/body_updates/tutorial002_py310.py hl[33] *} ### 部分更新小结 { #partial-updates-recap } 简而言之,应用部分更新应当:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 3.7K bytes - Click Count (0) -
docs/en/docs/how-to/custom-docs-ui-assets.md
└── swagger-ui.css ``` ### Serve the static files { #serve-the-static-files } * Import `StaticFiles`. * "Mount" a `StaticFiles()` instance in a specific path. {* ../../docs_src/custom_docs_ui/tutorial002_py310.py hl[7,11] *} ### Test the static files { #test-the-static-files } Start your application and go to [http://127.0.0.1:8000/static/redoc.standalone.js](http://127.0.0.1:8000/static/redoc.standalone.js).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 7.5K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/body-updates.md
接著你可以用它來生成只包含實際設定(請求中傳來)的資料之 `dict`,省略預設值: {* ../../docs_src/body_updates/tutorial002_py310.py hl[32] *} ### 使用 Pydantic 的 `update` 參數 { #using-pydantics-update-parameter } 接著,你可以用 `.model_copy()` 建立現有模型的副本,並傳入含有要更新資料之 `dict` 到 `update` 參數。 例如 `stored_item_model.model_copy(update=update_data)`: {* ../../docs_src/body_updates/tutorial002_py310.py hl[33] *} ### 部分更新摘要 { #partial-updates-recap } 總結一下,若要套用部分更新,你可以:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 3.7K bytes - Click Count (0) -
docs/ja/docs/tutorial/body-updates.md
{* ../../docs_src/body_updates/tutorial002_py310.py hl[32] *} ### Pydanticの`update`パラメータの使用 { #using-pydantics-update-parameter } ここで、`.model_copy()`を用いて既存のモデルのコピーを作成し、`update`パラメータに更新するデータを含む`dict`を渡すことができます。 `stored_item_model.model_copy(update=update_data)`のように: {* ../../docs_src/body_updates/tutorial002_py310.py hl[33] *} ### 部分的更新のまとめ { #partial-updates-recap }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 5.2K bytes - Click Count (0) -
docs/ja/docs/how-to/custom-docs-ui-assets.md
└── swagger-ui.css ``` ### 静的ファイルの配信 { #serve-the-static-files } - `StaticFiles` をインポートします。 - 特定のパスに `StaticFiles()` インスタンスを「マウント」します。 {* ../../docs_src/custom_docs_ui/tutorial002_py310.py hl[7,11] *} ### 静的ファイルのテスト { #test-the-static-files } アプリケーションを起動し、[http://127.0.0.1:8000/static/redoc.standalone.js](http://127.0.0.1:8000/static/redoc.standalone.js) にアクセスします。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 9.5K bytes - Click Count (0) -
docs/zh/docs/how-to/custom-docs-ui-assets.md
├── swagger-ui-bundle.js └── swagger-ui.css ``` ### 提供静态文件 { #serve-the-static-files } - 导入 `StaticFiles`。 - 在特定路径上“挂载”一个 `StaticFiles()` 实例。 {* ../../docs_src/custom_docs_ui/tutorial002_py310.py hl[7,11] *} ### 测试静态文件 { #test-the-static-files } 启动你的应用,并访问 [http://127.0.0.1:8000/static/redoc.standalone.js](http://127.0.0.1:8000/static/redoc.standalone.js)。 你应该会看到一个非常长的 **ReDoc** 的 JavaScript 文件。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 7.1K bytes - Click Count (0) -
docs/en/docs/advanced/testing-websockets.md
# Testing WebSockets { #testing-websockets } You can use the same `TestClient` to test WebSockets. For this, you use the `TestClient` in a `with` statement, connecting to the WebSocket: {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *} /// note For more details, check Starlette's documentation for [testing WebSockets](https://www.starlette.dev/testclient/#testing-websocket-sessions).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 411 bytes - Click Count (0) -
docs/ko/docs/advanced/testing-websockets.md
# WebSocket 테스트하기 { #testing-websockets } 같은 `TestClient`를 사용하여 WebSocket을 테스트할 수 있습니다. 이를 위해 `with` 문에서 `TestClient`를 사용하여 WebSocket에 연결합니다: {* ../../docs_src/app_testing/tutorial002_py310.py hl[27:31] *} /// note 자세한 내용은 Starlette의 [WebSocket 테스트](https://www.starlette.dev/testclient/#testing-websocket-sessions) 문서를 확인하세요.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 453 bytes - Click Count (0)