EventHttpRequest::sendReplyStart

(PECL event >= 1.4.0-beta)

EventHttpRequest::sendReplyStartInitiate a chunked reply

Açıklama

publicEventHttpRequest::sendReplyStart(int$code, string$reason): void

Initiate a reply that uses Transfer-Encodingchunked .

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() .

Bağımsız Değişkenler

code

The HTTP response code to send.

reason

A brief message to send with the response code.

Dönen Değerler

Hiçbir değer dönmez.

Ayrıca Bakınız

To Top