code: public function setCookie(IHttpResponseMessage $response, Cookie $cookie): void
      {
          $this->headerFormatter->setCookie($response->getHeaders(), $cookie);
      }
docs: Sets a cookie in the headers
  
  @param IHttpResponseMessage $response The response to set the cookie in
  @param Cookie $cookie The cookie to set