Curl.php 732 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\TestFramework\Helper;
  8. use Magento\Framework\HTTP\Client\Curl as CurlLibrary;
  9. class Curl extends CurlLibrary
  10. {
  11. /**
  12. * Make DELETE request
  13. *
  14. * String type was added to parameter $param in order to support sending JSON or XML requests.
  15. * This feature was added base on Community Pull Request https://github.com/magento/magento2/pull/8373
  16. *
  17. * @param string $uri
  18. * @return void
  19. *
  20. * @see \Magento\Framework\HTTP\Client#post($uri, $params)
  21. */
  22. public function delete($uri)
  23. {
  24. $this->makeRequest("DELETE", $uri);
  25. }
  26. }