This commit is contained in:
thefosk
2014-01-06 20:57:02 +01:00
parent 389b90a47e
commit 42edc2b2e3
3 changed files with 26 additions and 11 deletions

View File

@@ -5,15 +5,20 @@
class Unirest
{
/**
* Verify SSL peer
* @var bool
*/
public static $verifyPeer = true;
private static $verifyPeer = true;
private static $socketTimeout = null;
private static $defaultHeaders = array();
/**
* Verify SSL peer
* @param bool $enabled enable SSL verification, by default is true
*/
public static function verifyPeer($enabled) {
Unirest::$verifyPeer = $enabled;
}
/**
* Set a timeout
* @param integer $seconds timeout value in seconds