\Dalenys_Api_Sender_Curl

Send a HTTP request with curl

Summary

Methods
Properties
Constants
setTimeout()
send()
shouldRetry()
No public properties found
CURLE_OPERATION_TIMEDOUT
REQUEST_TIMEOUT
No protected methods found
$timeout
$shouldRetry
N/A
No private methods found
No private properties found
N/A

Constants

CURLE_OPERATION_TIMEDOUT

CURLE_OPERATION_TIMEDOUT

REQUEST_TIMEOUT

REQUEST_TIMEOUT

Properties

$timeout

$timeout : integer

The timeout in seconds

Type

integer

$shouldRetry

$shouldRetry : boolean

Indicate if should retry depending on failing cases

Type

boolean

Methods

setTimeout()

setTimeout(  $timeout) 

Override the default timeout

Parameters

$timeout

send()

send(string  $url, array  $params) : boolean|string

Send the HTTP request with curl

Parameters

string $url

Url to sent the request

array $params

POST params

Returns

boolean|string

shouldRetry()

shouldRetry() : boolean

Tells if the request should be retried on a different URL if a previous send failed

Returns

boolean