Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 9011 - 9020 of 9,300 for Use (0.02 seconds)

  1. docs/zh/docs/tutorial/handling-errors.md

    遇到这些情况时,通常要返回 **4XX**(400 至 499)**HTTP 状态码**。
    
    这与表示请求成功的 **2XX**(200 至 299)HTTP 状态码类似。那些“200”状态码表示某种程度上的“成功”。
    
    而 **4XX** 状态码表示客户端发生了错误。
    
    大家都知道**「404 Not Found」**错误,还有调侃这个错误的笑话吧?
    
    ## 使用 `HTTPException` { #use-httpexception }
    
    向客户端返回 HTTP 错误响应,可以使用 `HTTPException`。
    
    ### 导入 `HTTPException` { #import-httpexception }
    
    {* ../../docs_src/handling_errors/tutorial001_py310.py hl[1] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  2. src/main/webapp/js/admin/plugins/form-validator/lang/es.js

     *  @license MIT
     */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 3K bytes
    - Click Count (0)
  3. docs/zh/docs/advanced/response-headers.md

    # 响应头 { #response-headers }
    
    ## 使用 `Response` 参数 { #use-a-response-parameter }
    
    你可以在你的*路径操作函数*中声明一个 `Response` 类型的参数(就像你可以为 cookies 做的那样)。
    
    然后你可以在这个*临时*响应对象中设置头部。
    
    {* ../../docs_src/response_headers/tutorial002_py310.py hl[1, 7:8] *}
    
    然后你可以像平常一样返回任何你需要的对象(例如一个 `dict` 或者一个数据库模型)。
    
    如果你声明了一个 `response_model`,它仍然会被用来过滤和转换你返回的对象。
    
    **FastAPI** 将使用这个*临时*响应来提取头部(也包括 cookies 和状态码),并将它们放入包含你返回的值的最终响应中,该响应由任何 `response_model` 过滤。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  4. docs/ja/docs/advanced/response-cookies.md

    # レスポンスの Cookie { #response-cookies }
    
    ## `Response` パラメータを使う { #use-a-response-parameter }
    
    *path operation 関数*で `Response` 型のパラメータを宣言できます。
    
    そして、その*一時的*なレスポンスオブジェクトに Cookie を設定できます。
    
    {* ../../docs_src/response_cookies/tutorial002_py310.py hl[1, 8:9] *}
    
    その後は通常どおり、必要な任意のオブジェクト(`dict`、データベースモデルなど)を返せます。
    
    `response_model` を宣言している場合でも、返したオブジェクトは引き続きフィルタおよび変換されます。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

    /*
     * Copyright (C) 2008 The Guava Authors
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     * http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 29.4K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/primitives/IntsTest.java

    /*
     * Copyright (C) 2008 The Guava Authors
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     * http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 29.4K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/primitives/FloatsTest.java

    /*
     * Copyright (C) 2008 The Guava Authors
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     * http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 29.4K bytes
    - Click Count (0)
  8. docs/pt/docs/how-to/extending-openapi.md

    Primeiro, escreva toda a sua aplicação **FastAPI** normalmente:
    
    {* ../../docs_src/extending_openapi/tutorial001_py310.py hl[1,4,7:9] *}
    
    ### Gerar o esquema OpenAPI { #generate-the-openapi-schema }
    
    Em seguida, use a mesma função utilitária para gerar o esquema OpenAPI, dentro de uma função `custom_openapi()`:
    
    {* ../../docs_src/extending_openapi/tutorial001_py310.py hl[2,15:21] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  9. docs/tr/docs/advanced/dataclasses.md

    {* ../../docs_src/dataclasses_/tutorial001_py310.py hl[1,6:11,18:19] *}
    
    Bu destek hâlâ **Pydantic** sayesinde vardır; çünkü Pydantic, [`dataclasses` için dahili destek](https://docs.pydantic.dev/latest/concepts/dataclasses/#use-of-stdlib-dataclasses-with-basemodel) sunar.
    
    Yani yukarıdaki kod Pydantic'i doğrudan kullanmasa bile, FastAPI bu standart dataclass'ları Pydantic'in kendi dataclass biçimine dönüştürmek için Pydantic'i kullanmaktadır.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  10. docs/ja/docs/tutorial/static-files.md

    # 静的ファイル { #static-files }
    
    `StaticFiles` を使用して、ディレクトリから静的ファイルを自動的に提供できます。
    
    ## `StaticFiles` の使用 { #use-staticfiles }
    
    * `StaticFiles` をインポート。
    * `StaticFiles()` インスタンスを特定のパスに「マウント」。
    
    {* ../../docs_src/static_files/tutorial001_py310.py hl[2,6] *}
    
    /// note | 技術詳細
    
    `from starlette.staticfiles import StaticFiles` も使用できます。
    
    **FastAPI**は、開発者の利便性のために、`starlette.staticfiles` と同じ `fastapi.staticfiles` を提供します。しかし、実際にはStarletteから直接渡されています。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 2.2K bytes
    - Click Count (0)
Back to Top