Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for UJSONResponse (0.07 seconds)

  1. tests/test_deprecated_responses.py

        assert response.json() == {"name": "widget", "price": 9.99}
    
    
    def test_ujson_response_emits_deprecation_warning():
        with pytest.warns(FastAPIDeprecationWarning, match="UJSONResponse is deprecated"):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 22 16:34:59 GMT 2026
    - 2K bytes
    - Click Count (0)
  2. fastapi/responses.py

        "and https://fastapi.tiangolo.com/tutorial/response-model/",
        category=FastAPIDeprecationWarning,
        stacklevel=2,
    )
    class UJSONResponse(JSONResponse):
        """JSON response using the ujson library to serialize data to JSON.
    
        **Deprecated**: `UJSONResponse` is deprecated. FastAPI now serializes data
        directly to JSON bytes via Pydantic when a return type or response model is
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  3. docs/en/docs/reference/responses.md

    ```python
    from fastapi.responses import (
        FileResponse,
        HTMLResponse,
        JSONResponse,
        ORJSONResponse,
        PlainTextResponse,
        RedirectResponse,
        Response,
        StreamingResponse,
        UJSONResponse,
    )
    ```
    
    ## FastAPI Responses
    
    There were a couple of custom FastAPI response classes that were intended to optimize JSON performance.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 22 16:34:59 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  4. pyproject.toml

        "pillow >=11.3.0",
        "python-slugify >=8.0.4",
        "pyyaml >=5.3.1,<7.0.0",
        "typer >=0.21.1",
    ]
    docs-tests = [
        "httpx >=0.23.0,<1.0.0",
        "ruff >=0.14.14",
        # For UJSONResponse
        "ujson >=5.8.0",
        # For ORJSONResponse
        "orjson >=3.9.3",
    ]
    github-actions = [
        "httpx >=0.27.0,<1.0.0",
        "pydantic >=2.9.0,<3.0.0",
        "pydantic-settings >=2.1.0,<3.0.0",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  5. fastapi/.agents/skills/fastapi/SKILL.md

        item = InternalItem(
            name="Foo", description="A very nice Item", secret_key="supersecret"
        )
        return item
    ```
    
    ## Performance
    
    Do not use `ORJSONResponse` or `UJSONResponse`, they are deprecated.
    
    Instead, declare a return type or response model. Pydantic will handle the data serialization on the Rust side.
    
    ## Including Routers
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  6. docs/de/docs/index.md

    Zusätzliche optionale FastAPI-Abhängigkeiten:
    
    * [`orjson`](https://github.com/ijl/orjson) – erforderlich, wenn Sie `ORJSONResponse` verwenden möchten.
    * [`ujson`](https://github.com/esnme/ultrajson) – erforderlich, wenn Sie `UJSONResponse` verwenden möchten.
    
    ## Lizenz { #license }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 23.6K bytes
    - Click Count (1)
  7. docs/uk/docs/index.md

    * [`orjson`](https://github.com/ijl/orjson) - потрібно, якщо ви хочете використовувати `ORJSONResponse`.
    * [`ujson`](https://github.com/esnme/ultrajson) - потрібно, якщо ви хочете використовувати `UJSONResponse`.
    
    ## Ліцензія { #license }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  8. docs/ru/docs/index.md

    * [`orjson`](https://github.com/ijl/orjson) — обязателен, если вы хотите использовать `ORJSONResponse`.
    * [`ujson`](https://github.com/esnme/ultrajson) — обязателен, если вы хотите использовать `UJSONResponse`.
    
    ## Лицензия { #license }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 30.4K bytes
    - Click Count (0)
  9. docs/ko/docs/index.md

    추가 선택적 FastAPI 의존성:
    
    * [`orjson`](https://github.com/ijl/orjson) - `ORJSONResponse`를 사용하려면 필요.
    * [`ujson`](https://github.com/esnme/ultrajson) - `UJSONResponse`를 사용하려면 필요.
    
    ## 라이센스 { #license }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 23.4K bytes
    - Click Count (0)
  10. docs/zh/docs/index.md

    额外的 FastAPI 可选依赖:
    
    * [`orjson`](https://github.com/ijl/orjson) - 使用 `ORJSONResponse` 时需要。
    * [`ujson`](https://github.com/esnme/ultrajson) - 使用 `UJSONResponse` 时需要。
    
    ## 许可协议 { #license }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 20.7K bytes
    - Click Count (0)
Back to Top