« EventHttpRequest::addHeader
EventHttpRequest::clearHeaders »

EventHttpRequest::cancel

(PECL event >= 1.4.0-beta)

EventHttpRequest::cancel — Cancels a pending HTTP request

説明

public function 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.

パラメータ

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

戻り値

値を返しません。

関連キーワード:
request   EventHttpRequest   Cancels   pending   cancel   callback   ongoing   executed   canceled   addHeader   clearHeaders   event   beta   associated   freed   currently   processed   corresponding   EventHttpConnection   going   reset   cannot   already   reentrantly   chunked
関連する関数・ページ:
eventhttprequest.geturi   eventhttprequest.gethost   eventhttprequest.getcommand   eventhttprequest.addheader   eventhttprequest.clearheaders   eventhttprequest.getresponsecode