Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,710 for responses (0.68 sec)

  1. docs/ko/docs/advanced/response-headers.md

    또한, 종속성에서 `Response` 매개변수를 선언하고 그 안에서 헤더(및 쿠키)를 설정할 수 있습니다.
    
    ## `Response` 직접 반환하기
    
    `Response`를 직접 반환할 때에도 헤더를 추가할 수 있습니다.
    
    [응답을 직접 반환하기](response-directly.md){.internal-link target=_blank}에서 설명한 대로 응답을 생성하고, 헤더를 추가 매개변수로 전달하세요.
    
    {* ../../docs_src/response_headers/tutorial001.py hl[10:12] *}
    
    /// note | 기술적 세부사항
    
    `from starlette.responses import Response`나 `from starlette.responses import JSONResponse`를 사용할 수도 있습니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. docs/es/docs/advanced/custom-response.md

    ///
    
    ### `Response` { #response }
    
    La clase principal `Response`, todos los otros responses heredan de ella.
    
    Puedes devolverla directamente.
    
    Acepta los siguientes parámetros:
    
    * `content` - Un `str` o `bytes`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. tests/test_include_router_defaults_overrides.py

    
    async def dep0(response: Response):
        response.headers["x-level0"] = "True"
    
    
    async def dep1(response: Response):
        response.headers["x-level1"] = "True"
    
    
    async def dep2(response: Response):
        response.headers["x-level2"] = "True"
    
    
    async def dep3(response: Response):
        response.headers["x-level3"] = "True"
    
    
    async def dep4(response: Response):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 358.6K bytes
    - Viewed (0)
  4. tests/test_application.py

        assert "redoc@2" in response.text
    
    
    def test_enum_status_code_response():
        response = client.get("/enum-status-code")
        assert response.status_code == 201, response.text
        assert response.json() == "foo bar"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 51.9K bytes
    - Viewed (0)
  5. docs/ru/docs/advanced/response-headers.md

    /// note | Технические детали
    
    Вы также можете использовать `from starlette.responses import Response` или `from starlette.responses import JSONResponse`.
    
    **FastAPI** предоставляет те же самые `starlette.responses` как `fastapi.responses` — для вашего удобства как разработчика. Но большинство доступных классов ответов поступают напрямую из Starlette.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/response-status-code.md

    ///
    
    It will:
    
    * Return that status code in the response.
    * Document it as such in the OpenAPI schema (and so, in the user interfaces):
    
    <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.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4K bytes
    - Viewed (0)
  7. tests/test_generate_unique_id_function.py

                        },
                        "responses": {
                            "200": {
                                "description": "Successful Response",
                                "content": {
                                    "application/json": {
                                        "schema": {
                                            "title": "Response Foo Post Root",
                                            "type": "array",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 66.7K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/response-cookies.md

    /// note | Technical Details
    
    You could also use `from starlette.responses import Response` or `from starlette.responses import JSONResponse`.
    
    **FastAPI** provides the same `starlette.responses` as `fastapi.responses` just as a convenience for you, the developer. But most of the available responses come directly from Starlette.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. docs/zh/docs/advanced/response-headers.md

    按照[直接返回响应](response-directly.md){.internal-link target=_blank}中所述创建响应,并将头部作为附加参数传递:
    
    {* ../../docs_src/response_headers/tutorial001.py hl[10:12] *}
    
    
    /// note | 技术细节
    
    你也可以使用`from starlette.responses import Response`或`from starlette.responses import JSONResponse`。
    
    **FastAPI**提供了与`fastapi.responses`相同的`starlette.responses`,只是为了方便开发者。但是,大多数可用的响应都直接来自Starlette。
    
    由于`Response`经常用于设置头部和cookies,因此**FastAPI**还在`fastapi.Response`中提供了它。
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. docs/es/docs/advanced/response-headers.md

    Crea un response como se describe en [Retorna un Response Directamente](response-directly.md){.internal-link target=_blank} y pasa los headers como un parámetro adicional:
    
    {* ../../docs_src/response_headers/tutorial001_py39.py hl[10:12] *}
    
    /// note | Detalles Técnicos
    
    También podrías usar `from starlette.responses import Response` o `from starlette.responses import JSONResponse`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top