| 1 | <?php |
||
| 15 | trait HTTPOptionsTrait{ |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | public $user_agent = 'chillerlanHttpInterface/2.0 +https://github.com/chillerlan/php-httpinterface'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * options for each curl instance |
||
| 24 | * |
||
| 25 | * this array is being merged into the default options as the last thing before curl_exec(). |
||
| 26 | * none of the values (except existence of the CA file) will be checked - that's up to the implementation. |
||
| 27 | * |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | public $curl_options = []; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * CA Root Certificates for use with CURL/SSL (if not configured in php.ini) |
||
| 34 | * |
||
| 35 | * @var string |
||
| 36 | * @link https://curl.haxx.se/ca/cacert.pem |
||
| 37 | * @link https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt |
||
| 38 | */ |
||
| 39 | public $ca_info = null; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * HTTPOptionsTrait constructor |
||
| 43 | * |
||
| 44 | * @throws \chillerlan\HTTP\ClientException |
||
| 45 | */ |
||
| 46 | protected function HTTPOptionsTrait():void{ |
||
| 66 | |||
| 67 | } |
||
| 68 |