Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 1,915 for Response_ (0.07 seconds)

  1. docs/en/docs/reference/response.md

    # `Response` class
    
    You can declare a parameter in a *path operation function* or dependency to be of type `Response` and then you can set data for the response like headers or cookies.
    
    You can also use it directly to create an instance of it and return it from your *path operations*.
    
    Read more about it in the [FastAPI docs about returning a custom Response](https://fastapi.tiangolo.com/advanced/response-directly/#returning-a-custom-response)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 12:41:54 GMT 2026
    - 559 bytes
    - Click Count (0)
  2. docs/ko/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_02_py310.py hl[8,10:11] *}
    
    이 간단한 경우는 반환 타입 어노테이션이 `Response` 클래스(또는 그 서브클래스)이기 때문에 FastAPI에서 자동으로 처리됩니다.
    
    그리고 `RedirectResponse`와 `JSONResponse`는 모두 `Response`의 서브클래스이므로, 타입 어노테이션이 올바르기 때문에 도구들도 만족합니다.
    
    ### Response 서브클래스 어노테이션 { #annotate-a-response-subclass }
    
    타입 어노테이션에 `Response`의 서브클래스를 사용할 수도 있습니다:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/response-model.md

    <img src="/img/tutorial/response-model/image01.png">
    
    并且两个模型都会用于交互式 API 文档:
    
    <img src="/img/tutorial/response-model/image02.png">
    
    ## 其他返回类型注解 { #other-return-type-annotations }
    
    有些情况下你会返回一些不是有效 Pydantic 字段的内容,并在函数上做了相应注解,只是为了获得工具链(编辑器、mypy 等)的支持。
    
    ### 直接返回 Response { #return-a-response-directly }
    
    最常见的情况是[直接返回 Response,详见进阶文档](../advanced/response-directly.md)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                // Both should create valid responses
                Smb2EchoResponse response1 = request1.createResponse(mockContext, request1);
                Smb2EchoResponse response2 = request2.createResponse(mockContext, request2);
    
                assertNotNull(response1);
                assertNotNull(response2);
                assertNotSame(response1, response2);
            }
        }
    
        @Nested
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

                assertSame(response1, result);
                assertSame(response2, result.getNext());
            }
    
            @Test
            @DisplayName("setResponse should accept valid response")
            void testSetResponse() {
                TestServerMessageBlock2Response response = new TestServerMessageBlock2Response(mockConfig);
    
                testRequest.setResponse(response);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/NotifyResponseTest.java

            assertNull(response2.getNextResponse());
    
            // Verify each response maintains its own notifications
            assertEquals(1, response1.getNotifyInformation().size());
            assertEquals(mockNotifyInfo1, response1.getNotifyInformation().get(0));
    
            assertEquals(1, response2.getNotifyInformation().size());
            assertEquals(mockNotifyInfo2, response2.getNotifyInformation().get(0));
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/tutorial/response-model.md

    <img src="/img/tutorial/response-model/image01.png">
    
    而且兩個模型都會用在互動式 API 文件中:
    
    <img src="/img/tutorial/response-model/image02.png">
    
    ## 其他回傳型別註解 { #other-return-type-annotations }
    
    有時你回傳的東西不是有效的 Pydantic 欄位,你仍會在函式上加上註解,只為了獲得工具(編輯器、mypy 等)提供的支援。
    
    ### 直接回傳 Response { #return-a-response-directly }
    
    最常見的情況是[直接回傳 Response(在進階文件中稍後會解釋)](../advanced/response-directly.md)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  8. docs/tr/docs/tutorial/response-model.md

    ### Doğrudan Response Döndürmek { #return-a-response-directly }
    
    En yaygın durum, [ileri seviye dokümanlarda daha sonra anlatıldığı gibi doğrudan bir Response döndürmektir](../advanced/response-directly.md).
    
    {* ../../docs_src/response_model/tutorial003_02_py310.py hl[8,10:11] *}
    
    Bu basit durum FastAPI tarafından otomatik olarak ele alınır; çünkü dönüş tipi annotation’ı `Response` class’ıdır (veya onun bir subclass’ı).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 17K bytes
    - Click Count (0)
  9. docs/ja/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_02_py310.py hl[8,10:11] *}
    
    このシンプルなケースは、戻り値の型アノテーションが `Response` のクラス(またはサブクラス)であるため、FastAPIが自動的に処理します。
    
    また `RedirectResponse` と `JSONResponse` の両方は `Response` のサブクラスなので、ツールも型アノテーションが正しいとして問題にしません。
    
    ### `Response`のサブクラスをアノテーションする { #annotate-a-response-subclass }
    
    型アノテーションで `Response` のサブクラスを使うこともできます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  10. samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java

        }
    
        String response2Body;
        try (Response response2 = client.newCall(request).execute()) {
          if (!response2.isSuccessful()) throw new IOException("Unexpected code " + response2);
    
          response2Body = response2.body().string();
          System.out.println("Response 2 response:          " + response2);
          System.out.println("Response 2 cache response:    " + response2.cacheResponse());
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 2.4K bytes
    - Click Count (0)
Back to Top