- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 628 for CUSTOM (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/en/docs/advanced/custom-response.md
{* ../../docs_src/custom_response/tutorial009b_py310.py hl[2,8,10] *} In this case, you can return the file path directly from your *path operation* function. ## Custom response class { #custom-response-class } You can create your own custom response class, inheriting from `Response` and using it. For example, let's say that you want to use [`orjson`](https://github.com/ijl/orjson) with some settings.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/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) -
docs/sts/custom-token-identity.md
# AssumeRoleWithCustomToken [](https://slack.min.io) ## Introduction To integrate with custom authentication methods using the [Identity Management Plugin](../iam/identity-management-plugin.md)), MinIO provides an STS API extension called `AssumeRoleWithCustomToken`. After configuring the plugin, use the generated Role ARN with `AssumeRoleWithCustomToken` to get temporary credentials to access object storage.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 27 00:58:09 GMT 2022 - 3K bytes - Click Count (0) -
docs/en/docs/how-to/custom-request-and-route.md
* Automatically logging all request bodies. ## Handling custom request body encodings { #handling-custom-request-body-encodings } Let's see how to make use of a custom `Request` subclass to decompress gzip requests. And an `APIRoute` subclass to use that custom request class. ### Create a custom `GzipRequest` class { #create-a-custom-gziprequest-class } /// tipCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4.4K bytes - Click Count (0) -
docs/en/docs/how-to/custom-docs-ui-assets.md
To disable them, set their URLs to `None` when creating your `FastAPI` app: {* ../../docs_src/custom_docs_ui/tutorial001_py310.py hl[8] *} ### Include the custom docs { #include-the-custom-docs } Now you can create the *path operations* for the custom docs. You can reuse FastAPI's internal functions to create the HTML pages for the docs, and pass them the needed arguments: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/how-to/custom-request-and-route.md
讓我們看看如何使用自訂的 `Request` 子類別來解壓縮 gzip 請求。 並透過 `APIRoute` 子類別來使用該自訂的請求類別。 ### 建立自訂的 `GzipRequest` 類別 { #create-a-custom-gziprequest-class } /// tip 這是一個示範用的簡化範例;如果你需要 Gzip 支援,可以直接使用提供的 [`GzipMiddleware`](../advanced/middleware.md#gzipmiddleware)。 /// 首先,我們建立 `GzipRequest` 類別,它會覆寫 `Request.body()` 方法,當存在對應的標頭時解壓縮本文。 如果標頭中沒有 `gzip`,它就不會嘗試解壓縮本文。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/ja/docs/how-to/custom-docs-ui-assets.md
API ドキュメントは **Swagger UI** と **ReDoc** を使用しており、それぞれにいくつかの JavaScript と CSS ファイルが必要です。 既定では、これらのファイルは <abbr title="Content Delivery Network - コンテンツ配信ネットワーク: 通常は複数のサーバーで構成され、JavaScript や CSS などの静的ファイルを提供するサービス。クライアントに近いサーバーからそれらのファイルを配信することで、パフォーマンスを改善するためによく使われます。">CDN</abbr> から配信されます。 しかし、カスタマイズすることも可能で、特定の CDN を指定したり、自分でファイルを配信したりできます。
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/ja/docs/how-to/custom-request-and-route.md
* すべてのリクエストボディの自動ロギング。 ## カスタムリクエストボディのエンコーディングの処理 { #handling-custom-request-body-encodings } gzip のリクエストを解凍するために、カスタムの `Request` サブクラスを使う方法を見ていきます。 そして、そのカスタムリクエストクラスを使うための `APIRoute` サブクラスを用意します。 ### カスタム `GzipRequest` クラスの作成 { #create-a-custom-gziprequest-class } /// tip | 豆知識 これは仕組みを示すためのサンプルです。Gzip 対応が必要な場合は、用意されている [`GzipMiddleware`](../advanced/middleware.md#gzipmiddleware) を使用できます。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 5.4K bytes - Click Count (0) -
docs/zh/docs/how-to/custom-docs-ui-assets.md
# 自托管自定义文档 UI 静态资源 { #custom-docs-ui-static-assets-self-hosting } API 文档使用 Swagger UI 和 ReDoc,它们各自需要一些 JavaScript 和 CSS 文件。 默认情况下,这些文件从一个 <abbr title="Content Delivery Network - 内容分发网络: 一种服务,通常由多台服务器组成,用于提供静态文件,如 JavaScript 和 CSS。它常用于从更接近客户端的服务器提供这些文件,从而提升性能。">CDN</abbr> 提供。 不过你可以自定义:可以指定特定的 CDN,或自行提供这些文件。 ## 为 JavaScript 和 CSS 自定义 CDN { #custom-cdn-for-javascript-and-css }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/js/custom.js
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 17:59:48 GMT 2026 - 7.7K bytes - Click Count (2)