src/Request/Abstracts/AbstractRequest.php
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;
        }
    }
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;
        }
    }
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 ; } }
Configure the Curl Options based on Request Type
Configure the Curl Options based on Request Type