protected function searchCookiesInHeaders() {
        $headers = $this->holder->getHeaders()->get('set-cookie');

        foreach ($headers as $header) {
            $cookie = $this->createCookieFromHeader($header);

            if ($cookie !== null) {
                $this->storeCookie($cookie);
            }
        }
    }