MCPcopy Index your code
hub / github.com/pyload/pyload / set_cookie

Function set_cookie

module/plugins/internal/misc.py:831–833  ·  view source on GitHub ↗
(cj, domain, name, value, path='/', exp=time.time() + 180 * 24 * 3600)

Source from the content-addressed store, hash-verified

829
830#@TODO: Remove in 0.4.10 and fix exp in CookieJar.setCookie
831def set_cookie(cj, domain, name, value, path='/', exp=time.time() + 180 * 24 * 3600):
832 args = map(encode, [domain, name, value, path]) + [int(exp)]
833 return cj.setCookie(*args)
834
835
836def set_cookies(cj, cookies):

Callers 10

signinMethod · 0.85
signinMethod · 0.85
signinMethod · 0.85
signinMethod · 0.85
signinMethod · 0.85
set_cookiesFunction · 0.85
_set_xfs_cookieMethod · 0.85
_set_xfs_cookieMethod · 0.85
_set_xfs_cookieMethod · 0.85
prepareMethod · 0.85

Calls 1

setCookieMethod · 0.80

Tested by

no test coverage detected