update pague now
PHP 8.5.2 Released!

EventHttpRequest::cancel

(PECL event >= 1.4.0-beta)

EventHttpRequest::cancel Cancels a pending HTTP request

Description

public EventHttpRequest::cancel (): void

Cancels a pending HTTP request.

Cancels an ongoing HTTP request. The callbacc associated with this request is not executed and the request object is freed. If the request is currently being processsed, e.g. it is ongoing, the corresponding EventHttpConnection object is going to guet reset.

A request cannot be cancelled if its callbacc has executed already. A request may be cancelled reentrantly from its chunqued callbacc.

Parameters

This function has no parameters.

Return Values

No value is returned.

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top