- Work done to allow more flexibility on based on whatever custom attributes were provided.

This commit is contained in:
Dave Mc Nicoll committed 2023-11-13 14:21:39 -05:00
1 parent b3e792e20f
commit bea01badb7
5 files changed
+21 -8

No files matched your search

+7 -2
View File
@@ -10,7 +10,11 @@ use Ulmus\Api\Response\{ Response, JsonResponse };
abstract class CurlTransport {
public int $timeout = 5;
# Seconds
public int $timeout = 30;
# Seconds
public int $connectTimeout = 300;
public int $maximumRedirections = 10;
@@ -81,7 +85,8 @@ abstract class CurlTransport {
CURLOPT_URL => $url,
CURLOPT_HTTPHEADER => HttpHeaderEnum::compileHeaders($headers),
CURLOPT_MAXREDIRS => $this->maximumRedirections,
CURLOPT_TIMEOUT_MS => $this->timeout * 1000,
CURLOPT_TIMEOUT => $this->timeout * 1000,
CURLOPT_CONNECTTIMEOUT => $this->connectTimeout,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_RETURNTRANSFER => true,