EventHttpRequest::sendReplyStart

(PECL event >= 1.4.0-beta)
Initiate a chunked reply
public void EventHttpRequest::sendReplyStart ( int $code , string $reason )

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

Parameters:
code

The HTTP response code to send.

reason

A brief message to send with the response code.

Returns:

No value is returned.

See also:

EventHttpRequest::sendReplyChunk() -

EventHttpRequest::sendReplyEnd() -

doc_php
2016-02-24 16:08:33
Comments
Leave a Comment

Please login to continue.