| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total |  | n/a | 0 / 0 |  | n/a | 0 / 0 | CRAP |  | n/a | 0 / 0
CURLRequest |  | n/a | 0 / 0 |  | n/a | 0 / 0 | 0 |  | n/a | 0 / 0

1 | <?php
2 |
3 | namespace Config;
4 |
5 | use CodeIgniter\Config\BaseConfig;
6 |
7 | class CURLRequest extends BaseConfig
8 | {
9 | /**
10 | * --------------------------------------------------------------------------
11 | * CURLRequest Share Connection Options
12 | * --------------------------------------------------------------------------
13 | *
14 | * Share connection options between requests.
15 | *
16 | * @var list<int>
17 | *
18 | * @see https://www.php.net/manual/en/curl.constants.php#constant.curl-lock-data-connect
19 | */
20 | public array $shareConnectionOptions = [
21 | CURL_LOCK_DATA_CONNECT,
22 | CURL_LOCK_DATA_DNS,
23 | ];
24 |
25 | /**
26 | * --------------------------------------------------------------------------
27 | * CURLRequest Share Options
28 | * --------------------------------------------------------------------------
29 | *
30 | * Whether share options between requests or not.
31 | *
32 | * If true, all the options won't be reset between requests.
33 | * It may cause an error request with unnecessary headers.
34 | */
35 | public bool $shareOptions = false;
36 | }