Home / Function/ make_authenticate_headers() — fastapi Function Reference

make_authenticate_headers() — fastapi Function Reference

Architecture documentation for the make_authenticate_headers() function in http.py from the fastapi codebase.

Function python Security Schemes calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  ed17ae85_3d39_469e_907e_e29828853a41["make_authenticate_headers()"]
  4e2b048a_4ece_200c_1c67_a89f28fd47db["HTTPBasic"]
  ed17ae85_3d39_469e_907e_e29828853a41 -->|defined in| 4e2b048a_4ece_200c_1c67_a89f28fd47db
  974dca00_b535_c294_ff38_23cb4d603d3a["make_authenticate_headers()"]
  974dca00_b535_c294_ff38_23cb4d603d3a -->|calls| ed17ae85_3d39_469e_907e_e29828853a41
  974dca00_b535_c294_ff38_23cb4d603d3a["make_authenticate_headers()"]
  ed17ae85_3d39_469e_907e_e29828853a41 -->|calls| 974dca00_b535_c294_ff38_23cb4d603d3a
  style ed17ae85_3d39_469e_907e_e29828853a41 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fastapi/security/http.py lines 199–202

    def make_authenticate_headers(self) -> dict[str, str]:
        if self.realm:
            return {"WWW-Authenticate": f'Basic realm="{self.realm}"'}
        return {"WWW-Authenticate": "Basic"}

Domain

Subdomains

Frequently Asked Questions

What does make_authenticate_headers() do?
make_authenticate_headers() is a function in the fastapi codebase, defined in fastapi/security/http.py.
Where is make_authenticate_headers() defined?
make_authenticate_headers() is defined in fastapi/security/http.py at line 199.
What does make_authenticate_headers() call?
make_authenticate_headers() calls 1 function(s): make_authenticate_headers.
What calls make_authenticate_headers()?
make_authenticate_headers() is called by 1 function(s): make_authenticate_headers.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free