Search Options

Results per page
Sort
Preferred Languages
Advance

Results 561 - 570 of 1,093 for _body (0.02 sec)

  1. container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt

            ).respond(response().withBody("Peter the person!"))
    
          val response = client.newCall(Request((mockServer.endpoint + "/person?name=peter").toHttpUrl())).execute()
    
          assertThat(response.body.string()).contains("Peter the person")
        }
      }
    
      @Test
      fun testHttpsRequest() {
        MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient ->
          mockServerClient
            .`when`(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. tests/test_security_oauth2.py

        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
                    "loc": ["body", "grant_type"],
                    "msg": "Field required",
                    "input": None,
                },
                {
                    "type": "missing",
                    "loc": ["body", "username"],
                    "msg": "Field required",
                    "input": None,
                },
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9K bytes
    - Viewed (0)
  3. tests/test_security_oauth2_optional_description.py

        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
                    "loc": ["body", "grant_type"],
                    "msg": "Field required",
                    "input": None,
                },
                {
                    "type": "missing",
                    "loc": ["body", "username"],
                    "msg": "Field required",
                    "input": None,
                },
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. tests/test_request_params/test_body/utils.py

    from typing import Any
    
    
    def get_body_model_name(openapi: dict[str, Any], path: str) -> str:
        body = openapi["paths"][path]["post"]["requestBody"]
        body_schema = body["content"]["application/json"]["schema"]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 268 bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/request-forms.md

    ## 定义 `Form` 参数
    
    创建表单(`Form`)参数的方式与 `Body` 和 `Query` 一样:
    
    {* ../../docs_src/request_forms/tutorial001.py hl[7] *}
    
    例如,OAuth2 规范的 "密码流" 模式规定要通过表单字段发送 `username` 和 `password`。
    
    <abbr title="specification">该规范</abbr>要求字段必须命名为 `username` 和 `password`,并通过表单字段发送,不能用 JSON。
    
    使用 `Form` 可以声明与 `Body` (及 `Query`、`Path`、`Cookie`)相同的元数据和验证。
    
    /// info | 说明
    
    `Form` 是直接继承自 `Body` 的类。
    
    ///
    
    /// tip | 提示
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/TextTransformerTest.java

            assertEquals("xyz", new String(resultData.getData(), resultData.getEncoding()));
        }
    
        public void test_transform_html() throws Exception {
            final byte[] data = new String("<html><body>xyz</body></html>").getBytes();
            final ResponseData responseData = new ResponseData();
            responseData.setUrl("file:/test.html");
            responseData.setCharSet(Constants.UTF_8);
            responseData.setResponseBody(data);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. docs_src/custom_response/tutorial002_py39.py

    
    @app.get("/items/", response_class=HTMLResponse)
    async def read_items():
        return """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 352 bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Call.kt

       *
       * ```java
       * // ensure the response (and underlying response body) is closed
       * try (Response response = client.newCall(request).execute()) {
       *   ...
       * }
       * ```
       *
       * The caller may read the response body with the response's [Response.body] method. To avoid
       * leaking resources callers must [close the response body][ResponseBody] or the response.
       *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/request-forms-and-files.md

    /// warning | Advertencia
    
    Puedes declarar múltiples parámetros `File` y `Form` en una *path operation*, pero no puedes también declarar campos `Body` que esperas recibir como JSON, ya que el request tendrá el body codificado usando `multipart/form-data` en lugar de `application/json`.
    
    Esto no es una limitación de **FastAPI**, es parte del protocolo HTTP.
    
    ///
    
    ## Resumen { #recap }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. docs_src/custom_response/tutorial003_py39.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items():
        html_content = """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
        """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 394 bytes
    - Viewed (0)
Back to top