MCPcopy
hub / github.com/psf/requests / update

Method update

src/requests/cookies.py:391–399  ·  view source on GitHub ↗

Updates this jar with cookies from another CookieJar or dict-like

(  # type: ignore[override]
        self, other: CookieJar | SupportsKeysAndGetItem[str, str]
    )

Source from the content-addressed store, hash-verified

389 return super().set_cookie(cookie, *args, **kwargs)
390
391 def update( # type: ignore[override]
392 self, other: CookieJar | SupportsKeysAndGetItem[str, str]
393 ) -> None:
394 """Updates this jar with cookies from another CookieJar or dict-like"""
395 if isinstance(other, cookielib.CookieJar):
396 for cookie in other:
397 self.set_cookie(copy.copy(cookie))
398 else:
399 super().update(other)
400
401 def _find(
402 self, name: str, domain: str | None = None, path: str | None = None

Callers 13

copyMethod · 0.95
__setstate__Method · 0.80
create_cookieFunction · 0.80
prepare_authMethod · 0.80
merge_settingFunction · 0.80
requestMethod · 0.80
__init__Method · 0.80
test_fixes_1329Method · 0.80
test_updateMethod · 0.80

Calls 2

set_cookieMethod · 0.95
copyMethod · 0.45