| 1 | <?php |
||
| 15 | trait RequestTrait{ |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Path to the CA cert file |
||
| 19 | * |
||
| 20 | * @link http://init.haxx.se/ca/cacert.pem |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $ca_info; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Embed stuff from anywhere! |
||
| 27 | * |
||
| 28 | * @param string $url |
||
| 29 | * @param array $params |
||
| 30 | * @param array $curl_options |
||
| 31 | * |
||
| 32 | * @return \chillerlan\TinyCurl\ResponseInterface |
||
| 33 | */ |
||
| 34 | protected function fetch($url, array $params = [], array $curl_options = []){ |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Sets the path to the CA cert file |
||
| 44 | * |
||
| 45 | * @param $ca_info |
||
| 46 | * |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | protected function setRequestCA($ca_info){ |
||
| 54 | |||
| 55 | } |
||
| 56 |