- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 60 for gun (0.01 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/zh-hant/docs/tutorial/server-sent-events.md
/// ## 什麼是 Server-Sent Events? { #what-are-server-sent-events } SSE 是一種透過 HTTP 從伺服器向用戶端串流傳送資料的標準。 每個事件都是一個小型文字區塊,包含 `data`、`event`、`id` 和 `retry` 等「欄位」,並以空白行分隔。 看起來像這樣: ``` data: {"name": "Portal Gun", "price": 999.99} data: {"name": "Plumbus", "price": 32.99} ``` SSE 常用於 AI 聊天串流、即時通知、日誌與可觀察性,以及其他由伺服器主動推送更新給用戶端的情境。 /// tip 如果你要串流二進位資料,例如影片或音訊,請參考進階指南:[串流資料](../advanced/stream-data.md)。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:33:04 GMT 2026 - 4.6K bytes - Click Count (0) -
docs/ja/docs/tutorial/server-sent-events.md
SSE は、HTTP 経由でサーバーからクライアントへデータをストリーミングするための標準です。 各イベントは、`data`、`event`、`id`、`retry` などの「フィールド」を含む小さなテキストブロックで、空行で区切られます。 次のようになります: ``` data: {"name": "Portal Gun", "price": 999.99} data: {"name": "Plumbus", "price": 32.99} ``` SSE は、AI チャットのストリーミング、ライブ通知、ログやオブザビリティなど、サーバーがクライアントへ更新をプッシュする用途で一般的に使われます。 /// tip | 豆知識Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:55:22 GMT 2026 - 5.8K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/stream-json-lines.md
在這些情況下,常見做法是傳送「**JSON Lines**」,這是一種每一行各包含一個 JSON 物件的格式。 回應的 content type 會是 `application/jsonl`(而不是 `application/json`),而本體內容會像這樣: ```json {"name": "Plumbus", "description": "A multi-purpose household device."} {"name": "Portal Gun", "description": "A portal opening device."} {"name": "Meeseeks Box", "description": "A box that summons a Meeseeks."} ``` 它和 JSON 陣列(相當於 Python 的 list)很像,但不同於用 `[]` 包起來並以 `,` 分隔項目,它是每一行各放一個 JSON 物件,彼此以換行字元分隔。 /// infoCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:33:04 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/zh/docs/tutorial/server-sent-events.md
/// ## 什么是服务器发送事件? { #what-are-server-sent-events } SSE 是一种通过 HTTP 从服务器向客户端流式传输数据的标准。 每个事件是一个带有 `data`、`event`、`id` 和 `retry` 等“字段”的小文本块,以空行分隔。 看起来像这样: ``` data: {"name": "Portal Gun", "price": 999.99} data: {"name": "Plumbus", "price": 32.99} ``` SSE 常用于 AI 聊天流式输出、实时通知、日志与可观测性,以及其他服务器向客户端推送更新的场景。 /// tip | 提示 如果你想流式传输二进制数据(例如视频或音频),请查看高级指南:[流式传输数据](../advanced/stream-data.md)。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:29:48 GMT 2026 - 4.6K bytes - Click Count (0) -
docs/ja/docs/tutorial/stream-json-lines.md
レスポンスの content type は `application/jsonl`(`application/json` の代わり)となり、ボディは次のようになります: ```json {"name": "Plumbus", "description": "A multi-purpose household device."} {"name": "Portal Gun", "description": "A portal opening device."} {"name": "Meeseeks Box", "description": "A box that summons a Meeseeks."} ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:55:22 GMT 2026 - 5.1K bytes - Click Count (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial001_01.py
def test_no_redirect() -> None: response = client.get("/items/") assert response.status_code == 200
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 545 bytes - Click Count (0) -
docs_src/path_operation_advanced_configuration/tutorial005_py310.py
from fastapi import FastAPI app = FastAPI() @app.get("/items/", openapi_extra={"x-aperture-labs-portal": "blue"}) async def read_items():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 180 bytes - Click Count (0) -
docs_src/generate_clients/tutorial003_py310.py
return {"message": "Item received"} @app.get("/items/", response_model=list[Item], tags=["items"]) async def get_items(): return [ {"name": "Plumbus", "price": 3}, {"name": "Portal Gun", "price": 9001}, ] @app.post("/users/", response_model=ResponseMessage, tags=["users"]) async def create_user(user: User):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 914 bytes - Click Count (0) -
docs/tr/docs/tutorial/request-form-models.md
Bir client fazladan veri göndermeye çalışırsa, bir **error** response alır. Örneğin, client şu form field'larını göndermeye çalışırsa: * `username`: `Rick` * `password`: `Portal Gun` * `extra`: `Mr. Poopybutthole` `extra` field'ının izinli olmadığını söyleyen bir error response alır: ```json { "detail": [ { "type": "extra_forbidden",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 2.4K bytes - Click Count (0) -
docs/ko/docs/tutorial/request-form-models.md
{* ../../docs_src/request_form_models/tutorial002_an_py310.py hl[12] *} 클라이언트가 추가 데이터를 보내려고 하면 **오류** 응답을 받게 됩니다. 예를 들어, 클라이언트가 폼 필드를 보내려고 하면: * `username`: `Rick` * `password`: `Portal Gun` * `extra`: `Mr. Poopybutthole` `extra` 필드가 허용되지 않는다는 오류 응답을 받게 됩니다: ```json { "detail": [ { "type": "extra_forbidden", "loc": ["body", "extra"],Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 2.4K bytes - Click Count (0)