code: public function setCookies(IHttpResponseMessage $response, array $cookies): void
      {
          $this->headerFormatter->setCookies($response->getHeaders(), $cookies);
      }
docs: Sets cookies in the headers
  
  @param IHttpResponseMessage $response The response to set the cookies in
  @param Cookie[] $cookies The cookies to set