Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 440 for embody (0.29 sec)

  1. mockwebserver/README.md

      // instance for every unit test.
      MockWebServer server = new MockWebServer();
    
      // Schedule some responses.
      server.enqueue(new MockResponse().setBody("hello, world!"));
      server.enqueue(new MockResponse().setBody("sup, bra?"));
      server.enqueue(new MockResponse().setBody("yo dog"));
    
      // Start the server.
      server.start();
    
      // Ask the server for its URL. You'll need this to make HTTP requests.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  2. internal/rest/client.go

    		// to set the Body to nil. But turns out too much code
    		// depends on NewRequest returning a non-nil Body,
    		// so we use a well-known ReadCloser variable instead
    		// and have the http package also treat that sentinel
    		// variable to mean explicitly zero.
    		if req.GetBody != nil && req.ContentLength == 0 {
    			req.Body = http.NoBody
    			req.GetBody = func() (io.ReadCloser, error) { return http.NoBody, nil }
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(response.status).isEqualTo("HTTP/1.1 202 That'll do pig")
      }
    
      @Test
      fun setBodyAdjustsHeaders() {
        val response = MockResponse().setBody("ABC")
        assertThat(headersToList(response)).containsExactly("Content-Length: 3")
        assertThat(response.getBody()!!.readUtf8()).isEqualTo("ABC")
      }
    
      @Test
      fun mockResponseAddHeader() {
        val response =
          MockResponse()
            .clearHeaders()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/body.md

    <img src="/img/tutorial/body/image01.png">
    
    そして、それらが使われる *パスオペレーション* のそれぞれのAPIドキュメントにも表示されます:
    
    <img src="/img/tutorial/body/image02.png">
    
    ## エディターサポート
    
    エディターによる型ヒントと補完が関数内で利用できます (Pydanticモデルではなく `dict` を受け取ると、同じサポートは受けられません):
    
    <img src="/img/tutorial/body/image03.png">
    
    型によるエラーチェックも可能です:
    
    <img src="/img/tutorial/body/image04.png">
    
    これは偶然ではなく、このデザインに基づいてフレームワークが作られています。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  5. docs/fr/docs/tutorial/body.md

    ```Python hl_lines="4"
    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    ## Créez votre modèle de données
    
    Déclarez ensuite votre modèle de données en tant que classe qui hérite de `BaseModel`.
    
    Utilisez les types Python standard pour tous les attributs :
    
    ```Python hl_lines="7-11"
    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  6. docs/uk/docs/tutorial/body.md

    ## Без Pydantic
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/body-multiple-params.md

    기본적으로 **FastAPI**는 직접 본문으로 예측할 것입니다.
    
    하지만, 만약 모델 내용에 `item `키를 가진 JSON으로 예측하길 원한다면, 추가적인 본문 매개변수를 선언한 것처럼 `Body`의 특별한 매개변수인 `embed`를 사용할 수 있습니다:
    
    ```Python hl_lines="17"
    {!../../../docs_src/body_multiple_params/tutorial005.py!}
    ```
    
    아래 처럼:
    
    ```Python
    item: Item = Body(..., embed=True)
    ```
    
    이 경우에 **FastAPI**는 본문을 아래 대신에:
    
    ```JSON hl_lines="2"
    {
        "name": "Foo",
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    so wie in:
    
    === "Python 3.10+"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/body_multiple_params/tutorial005_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/body_multiple_params/tutorial005_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 29 17:32:43 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    como em:
    
    === "Python 3.10+"
    
        ```Python hl_lines="15"
        {!> ../../../docs_src/body_multiple_params/tutorial005_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/body_multiple_params/tutorial005.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    так же, как в этом примере:
    
    === "Python 3.10+"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/body_multiple_params/tutorial005_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/body_multiple_params/tutorial005_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="18"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top