Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CurlInterface.php
Go to the documentation of this file.
1 <?php
8 
12 interface CurlInterface
13 {
17  const GET = 'GET';
18  const PUT = 'PUT';
19  const POST = 'POST';
20  const DELETE = 'DELETE';
21 
29  public function addOption($option, $value);
30 
40  public function write($url, $body = [], $method = CurlInterface::POST, $headers = []);
41 
49  public function read($successRegex = null, $returnRegex = null);
50 
56  public function close();
57 }
$value
Definition: gender.phtml:16
write($url, $body=[], $method=CurlInterface::POST, $headers=[])
$method
Definition: info.phtml:13