Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 6131 - 6140 of 6,311 for RETURN (0.14 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    使用路径装饰器依赖项还可以避免开发新人误会代码中包含无用的未使用参数。
    
    ///
    
    /// info | 信息
    
    本例中,使用的是自定义响应头 `X-Key` 和 `X-Token`。
    
    但实际开发中,尤其是在实现安全措施时,最好使用 FastAPI 内置的[安全工具(下一章)](../security/index.md)。
    
    ///
    
    ## 依赖项错误和返回值 { #dependencies-errors-and-return-values }
    
    路径装饰器依赖项也可以使用普通的依赖项*函数*。
    
    ### 依赖项的需求项 { #dependency-requirements }
    
    路径装饰器依赖项可以声明请求的需求项(比如响应头)或其他子依赖项:
    
    {* ../../docs_src/dependencies/tutorial006_an_py310.py hl[8,13] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/sql-databases.md

    `HeroUpdate` 的字段包括:
    
    * `name`
    * `age`
    * `secret_name`
    
    {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[7:28] hl[25:28] *}
    
    ### 使用 `HeroCreate` 创建并返回 `HeroPublic` { #create-with-herocreate-and-return-a-heropublic }
    
    既然我们有了**多个模型**,我们就可以对使用它们的应用程序部分进行更新。
    
    我们在请求中接收到一个 `HeroCreate` *数据模型*,然后从中创建一个 `Hero` *表模型*。
    
    这个新的*表模型* `Hero` 会包含客户端发送的字段,以及一个由数据库生成的 `id`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

            }
    
            @Test
            @DisplayName("Should return null when hash algorithms is null")
            void testGetHashAlgosNull() {
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, null, new byte[] { 0x01 });
    
                assertNull(context.getHashAlgos());
            }
    
            @Test
            @DisplayName("Should return null when salt is null")
            void testGetSaltNull() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 34K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_body_nested_models/test_tutorial009.py

            "tutorial009_py310",
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_post_body(client: TestClient):
        data = {"2": 2.2, "3": 3.3}
        response = client.post("/index-weights/", json=data)
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  5. docs/tr/docs/async.md

    ```Python hl_lines="1"
    async def get_burgers(number: int):
        # Burgerleri yaratmak için bazı asenkron işler yap
        return burgers
    ```
    
    ...`def` yerine:
    
    ```Python hl_lines="2"
    # Bu asenkron değildir
    def get_sequential_burgers(number: int):
        # Burgerleri yaratmak için bazı sıralı işler yap
        return burgers
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 23.7K bytes
    - Click Count (0)
  6. docs/tr/docs/advanced/response-headers.md

    `Response` parametresini dependency'lerde de tanımlayıp, onların içinde header (ve cookie) ayarlayabilirsiniz.
    
    ## Doğrudan bir `Response` döndürün { #return-a-response-directly }
    
    Doğrudan bir `Response` döndürdüğünüzde de header ekleyebilirsiniz.
    
    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)
  7. docs/zh/docs/_llm-test.md

    * the expression
    * the statement
    
    * the frontend
    * the backend
    
    * the GitHub discussion
    * the GitHub issue
    
    * the performance
    * the performance optimization
    
    * the return type
    * the return value
    
    * the security
    * the security scheme
    
    * the task
    * the background task
    * the task function
    
    * the template
    * the template engine
    
    * the type annotation
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  8. docs/de/docs/tutorial/stream-json-lines.md

    ///
    
    ## JSON Lines mit FastAPI streamen { #stream-json-lines-with-fastapi }
    
    Um JSON Lines mit FastAPI zu streamen, können Sie anstelle von `return` in Ihrer *Pfadoperation-Funktion* `yield` verwenden, um jedes Element der Reihe nach zu erzeugen.
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:48:21 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  9. docs/ko/docs/tutorial/dependencies/sub-dependencies.md

        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    //// tab | Python 3.10+ 비 Annotated
    
    /// tip | 팁
    
    가능하다면 `Annotated` 버전을 사용하는 것을 권장합니다.
    
    ///
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    ## 정리 { #recap }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:57:01 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/dependencies/sub-dependencies.md

    async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    //// tab | Python 3.10+ 未使用 Annotated
    
    /// tip
    
    若可行,建議使用 `Annotated` 的版本。
    
    ///
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    ## 回顧 { #recap }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 3.6K bytes
    - Click Count (0)
Back to Top