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

@param IHttpResponseMessage $response The response to set the cookie in
@param Cookie $cookie The cookie to set