def extract_cookies(self, response, request):
        _debug("extract_cookies: %s", response.info())
        self._cookies_lock.acquire()
        self._policy._now = self._now = int(time.time())

        for cookie in self.make_cookies(response, request):
            if self._policy.set_ok(cookie, request):
                _debug(" setting cookie: %s", cookie)
                self.set_cookie(cookie)
        self._cookies_lock.release()
Extract cookies from response, where allowable given the request.
dataset/ETHPy150Open babble/babble/include/jython/Lib/cookielib.py/CookieJar.extract_cookies