Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 461 - 470 of 1,058 for png (0.04 seconds)

  1. docs/zh/docs/advanced/stream-data.md

    在上面的示例中,虽然按字节流式传输了数据,但响应没有 `Content-Type` 头,因此客户端不知道接收到的数据类型。
    
    你可以创建 `StreamingResponse` 的自定义子类,将 `Content-Type` 头设置为你要流式传输的数据类型。
    
    例如,你可以创建一个 `PNGStreamingResponse`,通过 `media_type` 属性把 `Content-Type` 头设置为 `image/png`:
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[6,19:20] hl[20] *}
    
    然后你可以在*路径操作函数*中通过 `response_class=PNGStreamingResponse` 使用这个新类:
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[23:27] hl[23] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/tutorial/body-nested-models.md

    如下所示:
    
    {* ../../docs_src/body_nested_models/tutorial008_py310.py hl[13] *}
    
    ## 隨處可得的編輯器支援 { #editor-support-everywhere }
    
    你將在各處獲得編輯器支援。
    
    即使是列表中的項目也一樣:
    
    <img src="/img/tutorial/body-nested-models/image01.png">
    
    若直接操作 `dict` 而不是使用 Pydantic 模型,就無法獲得這種等級的編輯器支援。
    
    但你也不必擔心,傳入的 dict 會自動被轉換,而你的輸出也會自動轉換為 JSON。
    
    ## 任意 `dict` 的本文 { #bodies-of-arbitrary-dicts }
    
    你也可以將本文宣告為一個 `dict`,其鍵為某種型別、值為另一種型別。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. docs/en/docs/advanced/openapi-callbacks.md

    You will see your docs including a "Callbacks" section for your *path operation* that shows how the *external API* should look like:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  4. SECURITY.md

    have different security properties and provide different levels of confidence
    when dealing with untrusted data. Based on the security history of these
    libraries we consider that it is safe to work with untrusted inputs for PNG,
    BMP, GIF, WAV, RAW, RAW\_PADDED, CSV and PROTO formats. All other input formats,
    including tensorflow-io should be sandboxed if used to process untrusted data.
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Oct 16 16:10:43 GMT 2024
    - 9.6K bytes
    - Click Count (0)
  5. docs/ja/docs/advanced/security/http-basic-auth.md

    {* ../../docs_src/security/tutorial006_an_py310.py hl[4,8,12] *}
    
    URL を最初に開こうとしたとき(またはドキュメントで「Execute」ボタンをクリックしたとき)、ブラウザはユーザー名とパスワードの入力を求めます:
    
    <img src="/img/tutorial/security/image12.png">
    
    ## ユーザー名の確認 { #check-the-username }
    
    より完全な例です。
    
    依存関係を使ってユーザー名とパスワードが正しいかを確認します。
    
    これには、Python 標準モジュール [`secrets`](https://docs.python.org/3/library/secrets.html) を用いてユーザー名とパスワードを検証します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/advanced/path-operation-advanced-configuration.md

    {* ../../docs_src/path_operation_advanced_configuration/tutorial005_py310.py hl[6] *}
    
    打開自動產生的 API 文件時,你的擴充會顯示在該*路徑操作*頁面的底部。
    
    <img src="/img/tutorial/path-operation-advanced-configuration/image01.png">
    
    而在檢視產生出的 OpenAPI(位於你的 API 的 `/openapi.json`)時,也可以在相應*路徑操作*中看到你的擴充:
    
    ```JSON hl_lines="22"
    {
        "openapi": "3.1.0",
        "info": {
            "title": "FastAPI",
            "version": "0.1.0"
        },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  7. docs/ja/docs/advanced/security/oauth2-scopes.md

    これらのスコープを宣言しているため、ログイン/認可時に API ドキュメントに表示されます。
    
    そして、付与するスコープ(`me`、`items`)を選択できます。
    
    これは、Facebook、Google、GitHub などでログイン時に権限を付与する際と同じ仕組みです:
    
    <img src="/img/tutorial/security/image11.png">
    
    ## スコープ付きの JWT トークン { #jwt-token-with-scopes }
    
    次に、トークンの path operation を修正して、要求されたスコープを返すようにします。
    
    引き続き同じ `OAuth2PasswordRequestForm` を使用します。これには、リクエストで受け取った各スコープを含む、`str` の `list` である `scopes` プロパティが含まれます。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  8. cmd/object_api_suite_test.go

    	// Test empty.
    	_, err = obj.PutObject(context.Background(), "bucket", "minio.png", mustGetPutObjReader(t, bytes.NewBufferString(uploadContent), int64(len(uploadContent)), "", ""), opts)
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    	objInfo, err := obj.GetObjectInfo(context.Background(), "bucket", "minio.png", opts)
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 34.5K bytes
    - Click Count (0)
  9. docs/zh/docs/advanced/openapi-callbacks.md

    ///
    
    ### 查看文档 { #check-the-docs }
    
    现在,启动应用并打开 [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs)。
    
    就能看到文档的*路径操作*已经包含了**回调**的内容以及*外部 API*:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/sql-databases.md

    ```
    
    </div>
    
    然後前往 `/docs` 的 UI,你會看到 FastAPI 使用這些模型來「文件化」API,也會用它們來「序列化」與「驗證」資料。
    
    <div class="screenshot">
    <img src="/img/tutorial/sql-databases/image01.png">
    </div>
    
    ## 用多個模型更新應用 { #update-the-app-with-multiple-models }
    
    現在我們稍微「重構」一下這個應用,以提升「安全性」與「彈性」。
    
    如果你檢查前一版的應用,在 UI 中你會看到,到目前為止它讓用戶端自己決定要建立的 `Hero` 的 `id`。😱
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.8K bytes
    - Click Count (0)
Back to Top