Add suggestions
This commit is contained in:
parent
7d251f092e
commit
12367648fa
|
@ -86,7 +86,7 @@ class HTTPClientFactory extends BaseFactory
|
||||||
RequestOptions::CONNECT_TIMEOUT => 10,
|
RequestOptions::CONNECT_TIMEOUT => 10,
|
||||||
RequestOptions::TIMEOUT => $this->config->get('system', 'curl_timeout', 60),
|
RequestOptions::TIMEOUT => $this->config->get('system', 'curl_timeout', 60),
|
||||||
// by default we will allow self-signed certs
|
// by default we will allow self-signed certs
|
||||||
// but you can override this
|
// but it can be overridden
|
||||||
RequestOptions::VERIFY => (bool)$this->config->get('system', 'verifyssl'),
|
RequestOptions::VERIFY => (bool)$this->config->get('system', 'verifyssl'),
|
||||||
RequestOptions::PROXY => $proxy,
|
RequestOptions::PROXY => $proxy,
|
||||||
RequestOptions::HEADERS => [
|
RequestOptions::HEADERS => [
|
||||||
|
|
|
@ -135,6 +135,8 @@ class HTTPClient implements IHTTPClient
|
||||||
case 'get':
|
case 'get':
|
||||||
case 'head':
|
case 'head':
|
||||||
case 'post':
|
case 'post':
|
||||||
|
case 'put':
|
||||||
|
case 'delete':
|
||||||
$response = $this->client->$method($url, $conf);
|
$response = $this->client->$method($url, $conf);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue