php8.5
Home/ Manual/ event / eventhttp/ EventHttp::setTimeout

EventHttp::setTimeout

PHP function Edit on GitHub ✎

(PECL event >= 1.4.0-beta)

Sets the timeout for an HTTP request

Description

EventHttp::setTimeout(int $value): void

Sets the timeout for an HTTP request.

Parameters

value

The timeout in seconds.

Return Values

Void

Source: reference/event/eventhttp/settimeout.xml · from the official PHP manual (php/doc-en)