Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 1,139 for docs_src (0.31 seconds)

  1. docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md

    응답을 생성하기 전에는 `yield`문을 포함하여 그 이전의 코드만이 실행됩니다:
    
    {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *}
    
    yield된 값은 *경로 처리* 및 다른 의존성들에 주입되는 값 입니다:
    
    {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *}
    
    `yield`문 다음의 코드는 응답을 생성한 후 실행됩니다:
    
    {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *}
    
    /// tip
    
    `async` 함수와 일반 함수 모두 사용할 수 있습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *}
    
    The yielded value is what is injected into *path operations* and other dependencies:
    
    {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *}
    
    The code following the `yield` statement is executed after the response:
    
    {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *}
    
    /// tip
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/path-params.md

    你可以使用与 Python 字符串格式化相同的语法声明路径“参数”或“变量”:
    
    {* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *}
    
    路径参数 `item_id` 的值会作为参数 `item_id` 传递给你的函数。
    
    运行示例并访问 [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo),可获得如下响应:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## 声明路径参数的类型 { #path-parameters-with-types }
    
    使用 Python 标准类型注解,声明路径操作函数中路径参数的类型:
    
    {* ../../docs_src/path_params/tutorial002_py310.py hl[7] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  4. docs/ko/docs/advanced/settings.md

    [더 큰 애플리케이션 - 여러 파일](../tutorial/bigger-applications.md)에서 본 것처럼, 설정을 다른 모듈 파일에 넣을 수도 있습니다.
    
    예를 들어 `config.py` 파일을 다음처럼 만들 수 있습니다:
    
    {* ../../docs_src/settings/app01_py310/config.py *}
    
    그리고 `main.py` 파일에서 이를 사용합니다:
    
    {* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
    
    /// tip | 팁
    
    [더 큰 애플리케이션 - 여러 파일](../tutorial/bigger-applications.md)에서 본 것처럼 `__init__.py` 파일도 필요합니다.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/async-tests.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    The file `main.py` would have:
    
    {* ../../docs_src/async_tests/app_a_py310/main.py *}
    
    The file `test_main.py` would have the tests for `main.py`, it could look like this now:
    
    {* ../../docs_src/async_tests/app_a_py310/test_main.py *}
    
    ## Run it { #run-it }
    
    You can run your tests as usual via:
    
    <div class="termy">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  6. docs/ja/docs/how-to/custom-request-and-route.md

    やることは、`try`/`except` ブロックの中でリクエストを処理するだけです:
    
    {* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[14,16] *}
    
    例外が発生しても、`Request` インスタンスはスコープ内に残るため、エラー処理時にリクエストボディを読み取り、活用できます:
    
    {* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[17:19] *}
    
    ## ルーターでのカスタム `APIRoute` クラス { #custom-apiroute-class-in-a-router }
    
    `APIRouter` の `route_class` パラメータを設定することもできます:
    
    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)
  7. docs/zh-hant/docs/tutorial/security/get-current-user.md

    {* ../../docs_src/security/tutorial002_an_py310.py hl[25] *}
    
    ## 取得使用者 { #get-the-user }
    
    `get_current_user` 會使用我們建立的(假的)工具函式,它接收一個作為 `str` 的 token,並回傳我們的 Pydantic `User` 模型:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *}
    
    ## 注入目前使用者 { #inject-the-current-user }
    
    現在我們可以在*路徑操作*中用相同的 `Depends` 來使用 `get_current_user`:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/header-params.md

    First import `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declare `Header` parameters { #declare-header-parameters }
    
    Then declare the header parameters using the same structure as with `Path`, `Query` and `Cookie`.
    
    You can define the default value as well as all the extra validation or annotation parameters:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 3K bytes
    - Click Count (0)
  9. docs/ja/docs/tutorial/query-params-str-validations.md

    ## バリデーションをさらに追加する { #add-more-validations }
    
    パラメータ`min_length`も追加することができます:
    
    {* ../../docs_src/query_params_str_validations/tutorial003_an_py310.py hl[10] *}
    
    ## 正規表現の追加 { #add-regular-expressions }
    
    パラメータが一致するべき <dfn title="正規表現、regex、regexp は、文字列に対する検索パターンを定義する文字の並びです。">正規表現</dfn> `pattern` を定義することができます:
    
    {* ../../docs_src/query_params_str_validations/tutorial004_an_py310.py hl[11] *}
    
    この特定の正規表現パターンは受け取ったパラメータの値をチェックします:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 20.3K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/websockets.md

    But it's the simplest way to focus on the server-side of WebSockets and have a working example:
    
    {* ../../docs_src/websockets_/tutorial001_py310.py hl[2,6:38,41:43] *}
    
    ## Create a `websocket` { #create-a-websocket }
    
    In your **FastAPI** application, create a `websocket`:
    
    {* ../../docs_src/websockets_/tutorial001_py310.py hl[1,46:47] *}
    
    /// note | Technical Details
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 5.3K bytes
    - Click Count (0)
Back to Top