for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the bee4/transport package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Bee4 2015
* @author Stephane HULARD <[email protected]>
* @package Bee4\Transport\Message\Request\Http
*/
namespace Bee4\Transport\Message\Request\Http;
use Bee4\Transport\Message\WithBodyTrait;
* HTTP DELETE Request object
class Delete extends HttpRequest
{
use WithBodyTrait;
protected function prepare()
$this->addOption(CURLOPT_CUSTOMREQUEST, 'DELETE');
$this->addOption(CURLOPT_POSTFIELDS, $this->getBody());
}