update() — requests Function Reference
Architecture documentation for the update() function in cookies.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 0aace64c_6424_62be_3052_5ea0e8ae90d3["update()"] 12ccbc5f_4c31_987c_5272_7babba58a1f2["RequestsCookieJar"] 0aace64c_6424_62be_3052_5ea0e8ae90d3 -->|defined in| 12ccbc5f_4c31_987c_5272_7babba58a1f2 645e3f64_2a19_6958_5fd7_4526e32197dc["__setstate__()"] 645e3f64_2a19_6958_5fd7_4526e32197dc -->|calls| 0aace64c_6424_62be_3052_5ea0e8ae90d3 9e1359c1_1379_2078_a638_b914c03e4f63["copy()"] 9e1359c1_1379_2078_a638_b914c03e4f63 -->|calls| 0aace64c_6424_62be_3052_5ea0e8ae90d3 293b1fa1_bdd4_a38c_982e_5c92a646576d["create_cookie()"] 293b1fa1_bdd4_a38c_982e_5c92a646576d -->|calls| 0aace64c_6424_62be_3052_5ea0e8ae90d3 b950528f_167e_7566_bbfa_f2e1929d1939["merge_cookies()"] b950528f_167e_7566_bbfa_f2e1929d1939 -->|calls| 0aace64c_6424_62be_3052_5ea0e8ae90d3 bea876a9_383a_fe0e_3e83_080ef6697c9f["prepare_auth()"] bea876a9_383a_fe0e_3e83_080ef6697c9f -->|calls| 0aace64c_6424_62be_3052_5ea0e8ae90d3 dba9d4ef_b6f9_4932_f472_7c695f48234a["merge_setting()"] dba9d4ef_b6f9_4932_f472_7c695f48234a -->|calls| 0aace64c_6424_62be_3052_5ea0e8ae90d3 71102afa_b9d8_769c_e8b8_1db9a083fa11["request()"] 71102afa_b9d8_769c_e8b8_1db9a083fa11 -->|calls| 0aace64c_6424_62be_3052_5ea0e8ae90d3 18b8e0d9_87b2_0c01_a9bc_40b6eb7e0054["set_cookie()"] 0aace64c_6424_62be_3052_5ea0e8ae90d3 -->|calls| 18b8e0d9_87b2_0c01_a9bc_40b6eb7e0054 9e1359c1_1379_2078_a638_b914c03e4f63["copy()"] 0aace64c_6424_62be_3052_5ea0e8ae90d3 -->|calls| 9e1359c1_1379_2078_a638_b914c03e4f63 style 0aace64c_6424_62be_3052_5ea0e8ae90d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/requests/cookies.py lines 358–364
def update(self, other):
"""Updates this jar with cookies from another CookieJar or dict-like"""
if isinstance(other, cookielib.CookieJar):
for cookie in other:
self.set_cookie(copy.copy(cookie))
else:
super().update(other)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does update() do?
update() is a function in the requests codebase, defined in src/requests/cookies.py.
Where is update() defined?
update() is defined in src/requests/cookies.py at line 358.
What does update() call?
update() calls 2 function(s): copy, set_cookie.
What calls update()?
update() is called by 7 function(s): __setstate__, copy, create_cookie, merge_cookies, merge_setting, prepare_auth, request.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free