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		)