src/Http/Response.php
public function applyCookies($cookies)
    {
        $headers = $this->headers();

        foreach ($cookies as $cookie) {
            $headers['Set-Cookie'][] = $cookie->toString();
        }
        return $this;
    }
public function applyCookies($cookies)
    {
        $headers = $this->headers();

        foreach ($cookies as $cookie) {
            $headers['Set-Cookie'][] = $cookie->toString();
        }
        return $this;
    }
public function applyCookies ( $ cookies ) { $ headers = $ this -> headers ( ) ; foreach ( $ cookies as $ cookie ) { $ headers [ 'Set-Cookie' ] [ ] = $ cookie -> toString ( ) ; } return $ this ; }
Set the Set-Cookie header

@param  array $cookies The cookies.
@return self
Set the Set - Cookie header