def __init__(self,
                 arg_name='cookie',
                 cookie_name=None,
                 secret_key=None,
                 domain=None,
                 path='/',
                 secure=False,
                 http_only=False,
                 data_expiry=DEFAULT_EXPIRY,
                 cookie_expiry=None):
        self.arg_name = arg_name
        self.provides = (arg_name,)
        if cookie_name is None:
            cookie_name = 'clastic_%s' % arg_name
        self.cookie_name = cookie_name
        self.secret_key = secret_key or self._get_random()
        self.domain = domain  # used for cross-domain cookie
        self.path = path  # limit cookie to given path
        self.secure = secure  # only transmit on HTTPS
        self.http_only = http_only  # disallow client-side (js) access
        self.data_expiry = data_expiry
        self.cookie_expiry = cookie_expiry
dataset/ETHPy150Open mahmoud/clastic/clastic/middleware/cookie.py/SignedCookieMiddleware.__init__/original