Bart\Curl::delete PHP Method

delete() public method

HTTP Delete Request
public delete ( $path, array $getParams, array $headers = null, null $cookies = null ) : array
$path
$getParams array
$headers array
$cookies null
return array
    public function delete($path, array $getParams, array $headers = null, $cookies = null)
    {
        //there is no CURLOPT_DELETE so put it in as a string and then do a custom header in $this->request()
        return $this->request(static::CURLOPT_DELETE, $path, $getParams, null, $headers, $cookies);
    }