Amp\Artax\Client::storeResponseCookie PHP Method

storeResponseCookie() private method

private storeResponseCookie ( $requestDomain, $rawCookieStr )
    private function storeResponseCookie($requestDomain, $rawCookieStr)
    {
        try {
            $cookie = CookieParser::parse($rawCookieStr);
            if (!$cookie->getDomain()) {
                $cookie = new Cookie($cookie->getName(), $cookie->getValue(), $cookie->getExpirationTime(), $cookie->getPath(), $requestDomain, $cookie->getSecure(), $cookie->getHttpOnly());
            }
            $this->cookieJar->store($cookie);
        } catch (\InvalidArgumentException $e) {
            // Ignore malformed Set-Cookie headers
        }
    }