def get_cookie(self, name, default=None):
        """Gets the value of the cookie with the given name, else default."""
        if self.cookies is not None and name in self.cookies:
            return self.cookies[name].value
        return default
dataset/ETHPy150Open toastdriven/itty/itty.py/Request.get_cookie/original