1 | <?php |
||
18 | trait RequestTrait{ |
||
19 | |||
20 | /** |
||
21 | * Path to the CA cert file |
||
22 | * |
||
23 | * @link http://init.haxx.se/ca/cacert.pem |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $ca_info; |
||
27 | |||
28 | /** |
||
29 | * Embed stuff from anywhere! |
||
30 | * |
||
31 | * @param string $url |
||
32 | * @param array $params |
||
33 | * @param array $curl_options |
||
34 | * |
||
35 | * @return \chillerlan\TinyCurl\Response |
||
36 | * @throws \chillerlan\TinyCurl\RequestException |
||
37 | */ |
||
38 | protected function fetch($url, array $params = [], array $curl_options = []){ |
||
45 | |||
46 | /** |
||
47 | * Sets the path to the CA cert file |
||
48 | * |
||
49 | * @param $ca_info |
||
50 | * |
||
51 | * @return $this |
||
52 | */ |
||
53 | protected function setRequestCA($ca_info){ |
||
58 | |||
59 | } |
||
60 |