Wsgi_15Watt.Cookie
1class Cookie(object): 2 """ 3 Representation of an HTTP cookie 4 """ 5 __key: str 6 value: str 7 __path: str 8 9 def __init__(self, key: str, value: str, path: str = '/'): 10 self.__key = key 11 self.value = value 12 self.__path = path 13 14 15 @property 16 def key(self) -> str: 17 return self.__key 18 19 20 @property 21 def path(self) -> str: 22 return self.__path 23 24 25 def __str__(self): 26 return "{key}={value};Path={path}".format( 27 key=self.__key, 28 value=self.value, 29 path=self.__path 30 )
class
Cookie:
2class Cookie(object): 3 """ 4 Representation of an HTTP cookie 5 """ 6 __key: str 7 value: str 8 __path: str 9 10 def __init__(self, key: str, value: str, path: str = '/'): 11 self.__key = key 12 self.value = value 13 self.__path = path 14 15 16 @property 17 def key(self) -> str: 18 return self.__key 19 20 21 @property 22 def path(self) -> str: 23 return self.__path 24 25 26 def __str__(self): 27 return "{key}={value};Path={path}".format( 28 key=self.__key, 29 value=self.value, 30 path=self.__path 31 )
Representation of an HTTP cookie