略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: EventHttpRequest::cancel

2024-12-22

EventHttpRequest::cancel

(PECL event >= 1.4.0-beta)

EventHttpRequest::cancelCancels a pending HTTP request

说明

public EventHttpRequest::cancel(): void

Cancels a pending HTTP request.

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

A request cannot be canceled if its callback has executed already. A request may be canceled reentrantly from its chunked callback.

参数

此函数没有参数。

返回值

没有返回值。

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/eventhttprequest.cancel.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3