Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for from (0.21 sec)

  1. docs/en/docs/release-notes.md

    ## 0.51.0
    
    * Re-export utils from Starlette:
        * This allows using things like `from fastapi.responses import JSONResponse` instead of `from starlette.responses import JSONResponse`.
        * It's mainly syntax sugar, a convenience for developer experience.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  2. tests/test_include_router_defaults_overrides.py

    import warnings
    
    import pytest
    from fastapi import APIRouter, Depends, FastAPI, Response
    from fastapi.responses import JSONResponse
    from fastapi.testclient import TestClient
    
    
    class ResponseLevel0(JSONResponse):
        media_type = "application/x-level-0"
    
    
    class ResponseLevel1(JSONResponse):
        media_type = "application/x-level-1"
    
    
    class ResponseLevel2(JSONResponse):
        media_type = "application/x-level-2"
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 358.6K bytes
    - Viewed (0)
Back to top