Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 991 for _body (0.01 sec)

  1. docs/ru/docs/how-to/custom-request-and-route.md

    Но благодаря изменениям в `GzipRequest.body` тело запроса будет автоматически распаковано при необходимости, когда оно будет загружено **FastAPI**.
    
    ## Доступ к телу запроса в обработчике исключений { #accessing-the-request-body-in-an-exception-handler }
    
    /// tip | Совет
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. tests/test_modules_same_name_body/app/a.py

    from fastapi import APIRouter, Body
    
    router = APIRouter()
    
    
    @router.post("/compute")
    def compute(a: int = Body(), b: str = Body()):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 160 bytes
    - Viewed (0)
  3. tests/test_request_params/test_file/test_list.py

        response = client.post(path)
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
                    "loc": ["body", "p"],
                    "msg": "Field required",
                    "input": None,
                }
            ]
        }
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/list-bytes",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. docs_src/custom_request_and_route/tutorial002_an_py310.py

                    body = await request.body()
                    detail = {"errors": exc.errors(), "body": body.decode()}
                    raise HTTPException(status_code=422, detail=detail)
    
            return custom_route_handler
    
    
    app = FastAPI()
    app.router.route_class = ValidationErrorLoggingRoute
    
    
    @app.post("/")
    async def sum_numbers(numbers: Annotated[list[int], Body()]):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 974 bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt

            localhostIpv4,
            localhostIpv6,
          )
        serverIpv4.enqueue(
          MockResponse(body = "unexpected call to IPv4"),
        )
        serverIpv6.enqueue(
          MockResponse(body = "hello from IPv6"),
        )
    
        val call = client.newCall(Request(url))
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("hello from IPv6")
    
        // In the process we made one successful connection attempt.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  6. docs_src/extra_data_types/tutorial001_an_py39.py

    from uuid import UUID
    
    from fastapi import Body, FastAPI
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def read_items(
        item_id: UUID,
        start_datetime: Annotated[datetime, Body()],
        end_datetime: Annotated[datetime, Body()],
        process_after: Annotated[timedelta, Body()],
        repeat_at: Annotated[Union[time, None], Body()] = None,
    ):
        start_process = start_datetime + process_after
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Apr 19 00:11:40 UTC 2024
    - 801 bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

                formatDate(1, TimeUnit.HOURS)!!,
              ),
            body = "ABC.1",
          ),
        )
        server.enqueue(
          MockResponse(
            headers =
              headersOf(
                "Last-Modified",
                formatDate(-1, TimeUnit.HOURS)!!,
                "Expires",
                formatDate(1, TimeUnit.HOURS)!!,
              ),
            body = "ABC.2",
          ),
        )
        client =
          client
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. docs/ru/llm-prompt.md

    * to reach users: донести до пользователей (or `привлечь внимание пользователей` in the promotion context)
    * body (meaning HTTP request body): тело запроса
    * body (meaning HTTP response body): тело ответа
    * body parameter : body-параметр (or `параметр тела запроса`)
    * validate: валидировать (or `выполнить валидацию`)
    * requirements (meaning dependencies): зависимости
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Oct 06 11:09:58 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/response-status-code.md

    <img src="/img/tutorial/response-status-code/image01.png">
    
    /// note
    
    Some response codes (see the next section) indicate that the response does not have a body.
    
    FastAPI knows this, and will produce OpenAPI docs that state there is no response body.
    
    ///
    
    ## About HTTP status codes { #about-http-status-codes }
    
    /// note
    
    If you already know what HTTP status codes are, skip to the next section.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

          MockResponse
            .Builder()
            .addHeader("Original-Header: foo")
            .body("abc")
            .build(),
        )
        addInterceptor(network) { chain: Interceptor.Chain ->
          val originalResponse = chain.proceed(chain.request())
          originalResponse
            .newBuilder()
            .body(uppercase(originalResponse.body))
            .addHeader("OkHttp-Intercepted", "yep")
            .build()
        }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 16:11:23 UTC 2025
    - 28.2K bytes
    - Viewed (0)
Back to top