Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 420 for tutorial002_an_py310 (0.14 seconds)

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

  1. docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md

    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *}
    
    클래스의 인스턴스를 만들 때 사용하는 `__init__` 메서드에 주목하세요:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *}
    
    ...이전의 `common_parameters`와 동일한 매개변수를 가지고 있습니다:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}
    
    이 매개변수들이 **FastAPI**가 의존성을 "해결"하는 데 사용할 것들입니다.
    
    두 경우 모두 다음을 갖게 됩니다:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:57:01 GMT 2026
    - 8K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md

    所以,我们可以将上面的依赖项 "可依赖对象" `common_parameters` 更改为类 `CommonQueryParams`:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *}
    
    注意用于创建类实例的 `__init__` 方法:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *}
    
    ...它与我们以前的 `common_parameters` 具有相同的参数:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}
    
    这些参数就是 **FastAPI** 用来 "处理" 依赖项的。
    
    在两个例子下,都有:
    
    * 一个可选的 `q` 查询参数,是 `str` 类型。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  3. docs/en/docs/how-to/custom-request-and-route.md

    {* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[14,16] *}
    
    If an exception occurs, the`Request` instance will still be in scope, so we can read and make use of the request body when handling the error:
    
    {* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[17:19] *}
    
    ## Custom `APIRoute` class in a router { #custom-apiroute-class-in-a-router }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  4. pyproject.toml

        "docs_src/dependencies/tutorial013_an_py310.py",  # temporary code example?
        "docs_src/dependencies/tutorial014_an_py310.py",  # temporary code example?
        # Pydantic v1 migration, no longer tested
        "docs_src/pydantic_v1_in_v2/tutorial001_an_py310.py",
        "docs_src/pydantic_v1_in_v2/tutorial002_an_py310.py",
        "docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  5. docs/zh-hant/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 17:05:38 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  6. docs/ko/docs/tutorial/header-params.md

    ## `Header` 임포트 { #import-header }
    
    먼저 `Header`를 임포트합니다:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## `Header` 매개변수 선언 { #declare-header-parameters }
    
    `Path`, `Query` 그리고 `Cookie`를 사용한 동일한 구조를 이용하여 헤더 매개변수를 선언합니다.
    
    첫 번째 값은 기본값이며, 추가 검증이나 어노테이션 매개변수 모두 전달할 수 있습니다:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *}
    
    /// note | 기술 세부사항
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Jan 11 00:15:26 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/query-param-models.md

    You can use Pydantic's model configuration to `forbid` any `extra` fields:
    
    {* ../../docs_src/query_param_models/tutorial002_an_py310.py hl[10] *}
    
    If a client tries to send some **extra** data in the **query parameters**, they will receive an **error** response.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  8. 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)
  9. docs/en/docs/tutorial/header-param-models.md

    You can use Pydantic's model configuration to `forbid` any `extra` fields:
    
    {* ../../docs_src/header_param_models/tutorial002_an_py310.py hl[10] *}
    
    If a client tries to send some **extra headers**, they will receive an **error** response.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  10. docs/ja/docs/tutorial/dependencies/classes-as-dependencies.md

    そこで、上で紹介した依存関係の"dependable" `common_parameters`を`CommonQueryParams`クラスに変更します:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *}
    
    クラスのインスタンスを作成するために使用される`__init__`メソッドに注目してください:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *}
    
    ...以前の`common_parameters`と同じパラメータを持っています:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}
    
    これらのパラメータは **FastAPI** が依存関係を「解決」するために使用するものです。
    
    どちらの場合も以下を持っています:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 15:24:30 GMT 2026
    - 8.8K bytes
    - Click Count (0)
Back to Top