devtools/fake.py
changeset 3653 ef71abb1e77b
parent 3652 9fba30110377
child 3675 5d143781a604
equal deleted inserted replaced
3652:9fba30110377 3653:ef71abb1e77b
    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]