- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 634 for RESPONSE (0.1 seconds)
-
docs/zh-hant/docs/tutorial/response-model.md
<img src="/img/tutorial/response-model/image01.png"> 而且兩個模型都會用在互動式 API 文件中: <img src="/img/tutorial/response-model/image02.png"> ## 其他回傳型別註解 { #other-return-type-annotations } 有時你回傳的東西不是有效的 Pydantic 欄位,你仍會在函式上加上註解,只為了獲得工具(編輯器、mypy 等)提供的支援。 ### 直接回傳 Response { #return-a-response-directly } 最常見的情況是[直接回傳 Response(在進階文件中稍後會解釋)](../advanced/response-directly.md)。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 14.5K bytes - Click Count (0) -
docs/en/docs/tutorial/response-model.md
And tools will also be happy because both `RedirectResponse` and `JSONResponse` are subclasses of `Response`, so the type annotation is correct. ### Annotate a Response Subclass { #annotate-a-response-subclass } You can also use a subclass of `Response` in the type annotation: {* ../../docs_src/response_model/tutorial003_03_py310.py hl[8:9] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 15.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt
} internal constructor(response: Response) { this.request = response.request this.protocol = response.protocol this.code = response.code this.message = response.message this.handshake = response.handshake this.headers = response.headers.newBuilder() this.body = response.body this.socket = response.socket this.networkResponse = response.networkResponseCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 28 14:39:28 GMT 2025 - 18.1K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/custom-response.md
# 自訂回應——HTML、串流、檔案與其他 { #custom-response-html-stream-file-others } 預設情況下,**FastAPI** 會回傳 JSON 回應。 你可以像在[直接回傳 Response](response-directly.md)中所示,直接回傳一個 `Response` 來覆寫它。 但如果你直接回傳一個 `Response`(或其子類別,例如 `JSONResponse`),資料將不會被自動轉換(即使你宣告了 `response_model`),而且文件也不會自動產生(例如,在產生的 OpenAPI 中包含 HTTP 標頭 `Content-Type` 的特定「media type」)。 你也可以在「路徑操作裝飾器」中使用 `response_class` 參數,宣告要使用的 `Response`(例如任意 `Response` 子類別)。 你從「路徑操作函式」回傳的內容,會被放進該 `Response` 中。 /// noteCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 10.3K bytes - Click Count (0) -
cmd/api-response.go
w.WriteHeader(statusCode) if response != nil { w.Write(response) } } // mimeType represents various MIME type used API responses. type mimeType string const ( // Means no response type. mimeNone mimeType = "" // Means response type is JSON. mimeJSON mimeType = "application/json" // Means response type is XML.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 24 04:05:19 GMT 2025 - 35K bytes - Click Count (0) -
docs/en/docs/advanced/custom-response.md
# Custom Response - HTML, Stream, File, others { #custom-response-html-stream-file-others } By default, **FastAPI** will return JSON responses. You can override it by returning a `Response` directly as seen in [Return a Response directly](response-directly.md).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
docs/fr/docs/advanced/custom-response.md
# Réponse personnalisée - HTML, flux, fichier, autres { #custom-response-html-stream-file-others } Par défaut, **FastAPI** renvoie des réponses JSON. Vous pouvez le remplacer en renvoyant une `Response` directement comme vu dans [Renvoyer une Response directement](response-directly.md).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 12.3K bytes - Click Count (0) -
docs/zh/docs/tutorial/response-model.md
<img src="/img/tutorial/response-model/image01.png"> 并且两个模型都会用于交互式 API 文档: <img src="/img/tutorial/response-model/image02.png"> ## 其他返回类型注解 { #other-return-type-annotations } 有些情况下你会返回一些不是有效 Pydantic 字段的内容,并在函数上做了相应注解,只是为了获得工具链(编辑器、mypy 等)的支持。 ### 直接返回 Response { #return-a-response-directly } 最常见的情况是[直接返回 Response,详见进阶文档](../advanced/response-directly.md)。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 14.5K bytes - Click Count (0) -
docs/ru/docs/advanced/custom-response.md
# Кастомные ответы — HTML, поток, файл и другие { #custom-response-html-stream-file-others } По умолчанию **FastAPI** возвращает ответы в формате JSON. Вы можете переопределить это, вернув `Response` напрямую, как показано в разделе [Вернуть Response напрямую](response-directly.md).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 17.6K bytes - Click Count (0) -
docs/uk/docs/advanced/custom-response.md
# Користувацька відповідь - HTML, стрім, файл, інше { #custom-response-html-stream-file-others } Типово **FastAPI** повертатиме JSON-відповіді. Ви можете переписати це, повернувши `Response` безпосередньо, як показано в [Повернути відповідь безпосередньо](response-directly.md).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 17K bytes - Click Count (0)