Merge pull request #50 from refear99/timeout_params
add HttpRequestManager timeout params
This commit is contained in:
commit
d02fb14bd3
@ -32,11 +32,12 @@ class HttpRequestManager extends RequestManager implements IRequestManager
|
|||||||
* construct
|
* construct
|
||||||
*
|
*
|
||||||
* @param string $host
|
* @param string $host
|
||||||
|
* @param int $timeout
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct($host)
|
public function __construct($host, $timeout = 1)
|
||||||
{
|
{
|
||||||
parent::__construct($host);
|
parent::__construct($host, $timeout);
|
||||||
$this->client = new Client;
|
$this->client = new Client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user