readme
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user