src/Http/Formatting/ResponseHeaderFormatter.php
public function setCookies(HttpHeaders $headers, array $cookies): void
    {
        foreach ($cookies as $cookie) {
            $this->setCookie($headers, $cookie);
        }
    }
public function setCookies(HttpHeaders $headers, array $cookies): void
    {
        foreach ($cookies as $cookie) {
            $this->setCookie($headers, $cookie);
        }
    }
Sets cookies in the headers

@param HttpHeaders $headers The headers to set the cookies in
@param Cookie[] $cookies The cookies to set
@throws RuntimeException Thrown if the set cookie header's hash key could not be calculated