Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1661 - 1670 of 2,279 for inf2 (0.06 seconds)

  1. docs/ko/docs/tutorial/dependencies/sub-dependencies.md

        * 사용자가 쿼리 `q`를 제공하지 않았다면, 이전에 쿠키에 저장해 둔 마지막 쿼리를 사용합니다.
    
    ## 의존성 사용하기 { #use-the-dependency }
    
    그다음 다음과 같이 의존성을 사용할 수 있습니다:
    
    {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[23] *}
    
    /// info | 정보
    
    *경로 처리 함수*에서는 `query_or_cookie_extractor`라는 의존성 하나만 선언하고 있다는 점에 주목하세요.
    
    하지만 **FastAPI**는 `query_or_cookie_extractor`를 호출하는 동안 그 결과를 전달하기 위해, 먼저 `query_extractor`를 해결해야 한다는 것을 알고 있습니다.
    
    ///
    
    ```mermaid
    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)
  2. docs/zh-hant/docs/advanced/dataclasses.md

    所以,即使上面的程式碼沒有明確使用 Pydantic,FastAPI 仍會使用 Pydantic 將那些標準的 dataclass 轉換為 Pydantic 版本的 dataclass。
    
    而且當然一樣支援:
    
    - 資料驗證
    - 資料序列化
    - 資料文件化等
    
    它的運作方式與 Pydantic 模型相同;實際上,底層就是透過 Pydantic 達成的。
    
    /// info
    
    請記得,dataclass 無法做到 Pydantic 模型能做的一切。
    
    所以你可能仍然需要使用 Pydantic 模型。
    
    但如果你手邊剛好有一堆 dataclass,這是個不錯的小技巧,可以用來用 FastAPI 驅動一個 Web API。🤓
    
    ///
    
    ## 在 `response_model` 中使用 Dataclasses { #dataclasses-in-response-model }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/dependencies/sub-dependencies.md

        - 如果使用者沒有提供查詢 `q`,我們就使用先前儲存在 cookie 中的最後一次查詢值。
    
    ## 使用相依項 { #use-the-dependency }
    
    然後我們可以這樣使用這個相依項:
    
    {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[23] *}
    
    /// info
    
    注意,在路徑操作函式中我們只宣告了一個相依項 `query_or_cookie_extractor`。
    
    但 **FastAPI** 會知道它必須先解析 `query_extractor`,在呼叫 `query_or_cookie_extractor` 時把其結果傳入。
    
    ///
    
    ```mermaid
    graph TB
    
    query_extractor(["query_extractor"])
    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)
  4. cmd/leak-detect_test.go

    	for g := range strings.SplitSeq(string(buf), "\n\n") {
    		// Again split on a new line, the first line of the second half contains the info about the go routine.
    		sl := strings.SplitN(g, "\n", 2)
    		if len(sl) != 2 {
    			continue
    		}
    		stack := strings.TrimSpace(sl[1])
    		// ignore the testing go routine.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  5. guava/src/com/google/common/base/FinalizableReferenceQueue.java

        boolean threadStarted = false;
        try {
          finalizerStarter.startFinalizer(FinalizableReference.class, queue, frqRef);
          threadStarted = true;
        } catch (Throwable t) {
          logger.log(
              Level.INFO,
              "Failed to start reference finalizer thread."
                  + " Reference cleanup will only occur when new references are created.",
              t);
        }
    
        this.threadStarted = threadStarted;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 19:26:59 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/advanced/strict-content-type.md

    若你需要支援未送出 `Content-Type` 標頭的客戶端,可以將 `strict_content_type=False` 以停用嚴格檢查:
    
    {* ../../docs_src/strict_content_type/tutorial001_py310.py hl[4] *}
    
    啟用此設定後,缺少 `Content-Type` 標頭的請求會將其主體解析為 JSON,這與舊版 FastAPI 的行為相同。
    
    /// info | 資訊
    
    此行為與設定新增於 FastAPI 0.132.0。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  7. docs/ru/docs/how-to/separate-openapi-schemas.md

    В таком случае вы можете отключить эту функциональность в **FastAPI** с помощью параметра `separate_input_output_schemas=False`.
    
    /// info | Информация
    
    Поддержка `separate_input_output_schemas` появилась в FastAPI `0.102.0`. 🤓
    
    ///
    
    {* ../../docs_src/separate_openapi_schemas/tutorial002_py310.py hl[10] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Jan 20 23:03:07 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  8. tests/test_extra_routes.py

    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/items/{item_id}": {
                        "get": {
                            "responses": {
                                "200": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 14.7K bytes
    - Click Count (0)
  9. tests/test_openapi_examples.py

    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/examples/": {
                        "post": {
                            "summary": "Examples",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 16.4K bytes
    - Click Count (0)
  10. tests/test_infer_param_optionality.py

    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/users/": {
                        "get": {
                            "summary": "Get Users",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 13.2K bytes
    - Click Count (0)
Back to Top