Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<EventHttpRequest::sendReplyEndEventListener>
^EventHttpRequestLast updated: Mon, 26 Oct 2026

EventHttpRequest::sendReplyStart

(PECL event >= 1.4.0-beta)

EventHttpRequest::sendReplyStart — Initiate a chunked reply

Description

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

Parameters

code

The HTTP response code to send.

reason

A brief message to send with the response code.

Return Values

No value is returned.

See Also


<EventHttpRequest::sendReplyEndEventListener>
^EventHttpRequestLast updated: Mon, 26 Oct 2026