Home / Function/ has_header() — requests Function Reference

has_header() — requests Function Reference

Architecture documentation for the has_header() function in cookies.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  9432366e_71db_2fad_ed15_6afac3c7047b["has_header()"]
  ad93b63e_dc2f_11b4_dbba_995ffe6bcf13["MockRequest"]
  9432366e_71db_2fad_ed15_6afac3c7047b -->|defined in| ad93b63e_dc2f_11b4_dbba_995ffe6bcf13
  style 9432366e_71db_2fad_ed15_6afac3c7047b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/requests/cookies.py lines 72–73

    def has_header(self, name):
        return name in self._r.headers or name in self._new_headers

Domain

Subdomains

Frequently Asked Questions

What does has_header() do?
has_header() is a function in the requests codebase, defined in src/requests/cookies.py.
Where is has_header() defined?
has_header() is defined in src/requests/cookies.py at line 72.

Analyze Your Own Codebase

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

Try Supermodel Free