1 | <?php |
||
18 | class RequestOptions{ |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | public $user_agent = 'chillerLAN-php-curl'; |
||
24 | |||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | public $timeout = 10; |
||
29 | |||
30 | /** |
||
31 | * options for each curl instance |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | public $curl_options = []; |
||
36 | |||
37 | /** |
||
38 | * CA Root Certificates for use with CURL/SSL |
||
39 | * |
||
40 | * @var string |
||
41 | * @link https://curl.haxx.se/ca/cacert.pem |
||
42 | */ |
||
43 | public $ca_info = null; |
||
44 | |||
45 | /** |
||
46 | * @var int |
||
47 | */ |
||
48 | public $max_redirects = 0; |
||
49 | |||
50 | /** |
||
51 | * RequestOptions constructor. |
||
52 | * |
||
53 | * @param array $properties |
||
54 | */ |
||
55 | public function __construct(array $properties = []){ |
||
64 | |||
65 | |||
66 | } |
||
67 |