code: private function initializeCurlResource(): void
      {
          if (!$this->resource) {
              $this->resource = curl_init();
  
              curl_setopt($this->resource, CURLOPT_RETURNTRANSFER, 1);
              curl_setopt($this->resource, CURLOPT_POST, 1);
              curl_setopt($this->resource, CURLOPT_HTTP_VERSION, 3);
          }
      }
docs: Initialize cURL resource