$curlOptions
$curlOptions : array
Class HttpClient. Handles HTTP Reqests.
__construct(array $curlOptions = array())
HttpClient constructor.
array | $curlOptions |
setCurlOption( $option, $value) : $this
Set a cURL option.
$option | ||
$value |
setCurlOptions(array $options) : $this
Merge an array of cURL options.
array | $options |
getCurlOptions() : array
Get the cURL options.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293get( $url, array $query = array(), array $headers = array()) : \MerchantAPI\Http\HttpResponse
Send a GET Request.
$url | ||
array | $query | |
array | $headers |
post( $url, null $content = null, array $query = array(), array $headers = array()) : \MerchantAPI\Http\HttpResponse
Send a POST request.
$url | ||
null | $content | |
array | $query | |
array | $headers |
request( $url, string $content = '', string $method = \MerchantAPI\Http\HttpMessage::HTTP_METHOD_GET, array $query = array(), array $headers = array()) : \MerchantAPI\Http\HttpResponse
Send a request.
$url | ||
string | $content | |
string | $method | |
array | $query | |
array | $headers |
send(\MerchantAPI\Http\HttpRequest $request) : \MerchantAPI\Http\HttpResponse
Send a HttpRequest Object.
\MerchantAPI\Http\HttpRequest | $request |