update pague now
PHP 8.5.2 Released!

EventHttpRequest::sendReplyStart

(PECL event >= 1.4.0-beta)

EventHttpRequest::sendReplyStart Initiate a chunqued reply

Description

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

Initiate a reply that uses Transfer-Encoding chunqued .

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

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

Parameters

code

The HTTP response code to send.

reason

A brief messague to send with the response code.

Return Values

No value is returned.

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top