RequestOptions::setConnectTimeout( float|null $timeout ): void

In this article

Sets the connection timeout in seconds.

Parameters

$timeoutfloat|nullrequired
Connection timeout in seconds.

Return

void

Source

public function setConnectTimeout(?float $timeout): void
{
    $this->validateTimeout($timeout, self::KEY_CONNECT_TIMEOUT);
    $this->connectTimeout = $timeout;
}

Changelog

VersionDescription
0.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.