« EventHttpRequest::sendReplyEnd
EventListener »

EventHttpRequest::sendReplyStart

(PECL event >= 1.4.0-beta)

EventHttpRequest::sendReplyStart — Initiate a chunked reply

説明

public function EventHttpRequest::sendReplyStart( int $code , string $reason ): void

Initiate a reply that uses Transfer-Encoding chunked.

This allows the caller to stream the reply back to the client and is useful when either not all of the reply data is immediately available or when sending very large replies.

The caller needs to supply data chunks with EventHttpRequest::sendReplyChunk() and complete the reply by calling EventHttpRequest::sendReplyEnd().

パラメータ

code

The HTTP response code to send.

reason

A brief message to send with the response code.

戻り値

値を返しません。

参考

関連キーワード:
reply   EventHttpRequest   chunked   Initiate   code   sendReplyEnd   sendReplyStart   reason   caller   sendReplyChunk   response   send   EventListener   event   beta   uses   Transfer   Encoding   allows   stream   back   client   useful   immediately   available
関連する関数・ページ:
eventhttprequest.sendreplyend   eventhttprequest.sendreplychunk   eventhttprequest.sendreply   eventhttprequest.getresponsecode   class.eventhttprequest   eventhttprequest.geturi