Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for get_items_headers (0.25 sec)

  1. fastapi/routing.py

                name: str
                description: str | None = None
    
            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(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  2. fastapi/applications.py

            ## Example
    
            ```python
            from fastapi import FastAPI, Response
    
            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,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
Back to top