CURLRequest.php 1.0 KB

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