add_header() — requests Function Reference
Architecture documentation for the add_header() function in cookies.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD aae59d68_31d3_c68b_3f3d_e84a114e5da7["add_header()"] ad93b63e_dc2f_11b4_dbba_995ffe6bcf13["MockRequest"] aae59d68_31d3_c68b_3f3d_e84a114e5da7 -->|defined in| ad93b63e_dc2f_11b4_dbba_995ffe6bcf13 d50c1686_8666_8262_bbfc_879b42e7d015["add_unredirected_header()"] aae59d68_31d3_c68b_3f3d_e84a114e5da7 -->|calls| d50c1686_8666_8262_bbfc_879b42e7d015 style aae59d68_31d3_c68b_3f3d_e84a114e5da7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/requests/cookies.py lines 78–82
def add_header(self, key, val):
"""cookiejar has no legitimate use for this method; add it back if you find one."""
raise NotImplementedError(
"Cookie headers should be added with add_unredirected_header()"
)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does add_header() do?
add_header() is a function in the requests codebase, defined in src/requests/cookies.py.
Where is add_header() defined?
add_header() is defined in src/requests/cookies.py at line 78.
What does add_header() call?
add_header() calls 1 function(s): add_unredirected_header.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free