We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d1b22d commit 032d817Copy full SHA for 032d817
1 file changed
src/http-client.php
@@ -12,10 +12,9 @@ class HttpClient extends Client
12
public function __construct($apiKey, SecureNativeOptions $options)
13
{
14
$defaultOptions = [
15
- // TODO: Check why handler func doesn't work
16
-// 'handler' => $this->getHandlerStack(),
+ 'handler' => $this->getHandlerStack(),
17
'base_uri' => $options->getApiUrl(),
18
- 'timeout' => 2,
+ 'timeout' => $options->getTimeout() / 1000,
19
'headers' => [
20
'User-Agent' => 'SecureNative-PHP',
21
'SN-Version'=> '1.0.0',
@@ -33,8 +32,10 @@ protected function getHandlerStack()
33
32
34
$handlerStack = HandlerStack::create($this->getHandler());
35
36
- $this->configureHandlerStack($handlerStack);
37
-
38
return $handlerStack;
39
}
+
+ protected function getHandler() {
+ return null;
40
+ }
41
0 commit comments