src/Http/Formatting/ResponseFormatter.php
public function setCookies(IHttpResponseMessage $response, array $cookies): void
    {
        $this->headerFormatter->setCookies($response->getHeaders(), $cookies);
    }
public function setCookies(IHttpResponseMessage $response, array $cookies): void
    {
        $this->headerFormatter->setCookies($response->getHeaders(), $cookies);
    }
public function setCookies ( IHttpResponseMessage $ response , array $ cookies ) : void { $ this -> headerFormatter -> setCookies ( $ response -> getHeaders ( ) , $ cookies ) ; }
Sets cookies in the headers

@param IHttpResponseMessage $response The response to set the cookies in
@param Cookie[] $cookies The cookies to set
Sets cookies in the headers