MCPcopy Create free account
hub / github.com/EasyIME/PIME / get_secure_cookie_key_version

Method get_secure_cookie_key_version

python/python3/tornado/web.py:784–796  ·  view source on GitHub ↗

Returns the signing key version of the secure cookie. The version is returned as int.

(
        self, name: str, value: Optional[str] = None
    )

Source from the content-addressed store, hash-verified

782 )
783
784 def get_secure_cookie_key_version(
785 self, name: str, value: Optional[str] = None
786 ) -> Optional[int]:
787 """Returns the signing key version of the secure cookie.
788
789 The version is returned as int.
790 """
791 self.require_setting("cookie_secret", "secure cookies")
792 if value is None:
793 value = self.get_cookie(name)
794 if value is None:
795 return None
796 return get_signature_key_version(value)
797
798 def redirect(
799 self, url: str, permanent: bool = False, status: Optional[int] = None

Callers

nothing calls this directly

Calls 3

require_settingMethod · 0.95
get_cookieMethod · 0.95

Tested by

no test coverage detected