equal
deleted
inserted
replaced
96 """return the value associated with the given input header, |
96 """return the value associated with the given input header, |
97 raise KeyError if the header is not set |
97 raise KeyError if the header is not set |
98 """ |
98 """ |
99 return self._headers.get(header, default) |
99 return self._headers.get(header, default) |
100 |
100 |
101 def set_cookie(self, cookie, key, maxage=300): |
101 def set_cookie(self, cookie, key, maxage=300, expires=None): |
102 """set / update a cookie key |
102 """set / update a cookie key |
103 |
103 |
104 by default, cookie will be available for the next 5 minutes |
104 by default, cookie will be available for the next 5 minutes |
105 """ |
105 """ |
106 morsel = cookie[key] |
106 morsel = cookie[key] |