Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CurlClient.php
Go to the documentation of this file.
1 <?php
7 
8 use OAuth\Common\Http\Uri\UriInterface;
9 
13 class CurlClient extends \OAuth\Common\Http\Client\CurlClient
14 {
18  public function retrieveResponse(
19  UriInterface $endpoint,
20  $requestBody,
21  array $extraHeaders = [],
22  $method = 'POST'
23  ) {
24  $this->setCurlParameters([CURLOPT_FAILONERROR => true]);
25  return parent::retrieveResponse($endpoint, $requestBody, $extraHeaders, $method);
26  }
27 }
retrieveResponse(UriInterface $endpoint, $requestBody, array $extraHeaders=[], $method='POST')
Definition: CurlClient.php:18
$method
Definition: info.phtml:13