Skip to content

Commit 1962b36

Browse files
authored
Add option to disable SSL verification for local Azurite support with self-signed certificates (#78)
* Add option to disable SSL verification for local Azurite support with self-signed certificates * Update docblock
1 parent c065ad2 commit 1962b36

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Common/Middleware/HttpClientOptions.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ final class HttpClientOptions
99
public function __construct(
1010
public readonly ?int $timeout = null,
1111
public readonly ?int $connectTimeout = null,
12+
public readonly ?bool $verifySsl = null,
1213
) {}
1314

1415
/**
15-
* @return array{timeout?: int, connect_timeout?: int}
16+
* @return array{timeout?: int, connect_timeout?: int, verify?: bool}
1617
*/
1718
public function toGuzzleHttpClientConfig(): array
1819
{
1920
return array_filter([
2021
'timeout' => $this->timeout,
2122
'connect_timeout' => $this->connectTimeout,
23+
'verify' => $this->verifySsl,
2224
], fn($value) => $value !== null);
2325
}
2426
}

0 commit comments

Comments
 (0)