Php/docs/eventhttprequest.cancel

提供:Dev Guides
< Php
2020年12月14日 (月) 10:52時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

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.


パラメータ

この関数にはパラメータはありません。


返り値

値を返しません。