code: protected function configureType()
      {
          switch ($this->type) {
              case 'POST':
                  $this->setOption(CURLOPT_POST, true);
                  break;
              case 'DELETE':
              case 'PUT':
                  $this->setOption(CURLOPT_CUSTOMREQUEST, $this->type);
                  break;
          }
      }
docs: Configure the Curl Options based on Request Type