You are here

public function CookieJar::updateFromResponse in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/CookieJar.php \Symfony\Component\BrowserKit\CookieJar::updateFromResponse()

Updates the cookie jar from a Response object.

Parameters

Response $response A Response object:

string $uri The base URL:

File

vendor/symfony/browser-kit/CookieJar.php, line 162

Class

CookieJar
CookieJar.

Namespace

Symfony\Component\BrowserKit

Code

public function updateFromResponse(Response $response, $uri = null) {
  $this
    ->updateFromSetCookie($response
    ->getHeader('Set-Cookie', false), $uri);
}