Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Valore (0.34 sec)

  1. fastapi/routing.py

            app = FastAPI()
            router = APIRouter()
    
            @router.head("/items/", status_code=204)
            def get_items_headers(response: Response):
                response.headers["X-Cat-Dog"] = "Alone in the world"
    
            app.include_router(router)
            ```
            """
            return self.api_route(
                path=path,
                response_model=response_model,
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  2. fastapi/applications.py

            app = FastAPI()
    
            @app.head("/items/", status_code=204)
            def get_items_headers(response: Response):
                response.headers["X-Cat-Dog"] = "Alone in the world"
            ```
            """
            return self.router.head(
                path,
                response_model=response_model,
                status_code=status_code,
                tags=tags,
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  3. docs_src/response_headers/tutorial002.py

    from fastapi import FastAPI, Response
    
    app = FastAPI()
    
    
    @app.get("/headers-and-object/")
    def get_headers(response: Response):
        response.headers["X-Cat-Dog"] = "alone in the world"
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 222 bytes
    - Viewed (0)
  4. docs_src/response_headers/tutorial001.py

    from fastapi import FastAPI
    from fastapi.responses import JSONResponse
    
    app = FastAPI()
    
    
    @app.get("/headers/")
    def get_headers():
        content = {"message": "Hello World"}
        headers = {"X-Cat-Dog": "alone in the world", "Content-Language": "en-US"}
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 309 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_response_headers/test_tutorial002.py

    def test_path_operation():
        response = client.get("/headers-and-object/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Hello World"}
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 378 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_response_headers/test_tutorial001.py

    
    def test_path_operation():
        response = client.get("/headers/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Hello World"}
        assert response.headers["X-Cat-Dog"] == "alone in the world"
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 426 bytes
    - Viewed (0)
Back to top