public function updateFromResponse(Response $response, $uri = null)
    {
        $this->updateFromSetCookie($response->getHeader('Set-Cookie', false), $uri);
    }
public function updateFromResponse(Response $response, $uri = null)
    {
        $this->updateFromSetCookie($response->getHeader('Set-Cookie', false), $uri);
    }
public function updateFromResponse ( Response $ response , $ uri = null ) { $ this -> updateFromSetCookie ( $ response -> getHeader ( 'Set-Cookie' , false ) , $ uri ) ; }
Updates the cookie jar from a Response object.

@param Response $response A Response object
@param string   $uri      The base URL
Updates the cookie jar from a Response object .