array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'eventhttprequest.sendreply.php', 1 => 'EventHttpRequest::sendReply', 2 => 'Send an HTML reply to the client', ), 'up' => array ( 0 => 'class.eventhttprequest.php', 1 => 'EventHttpRequest', ), 'prev' => array ( 0 => 'eventhttprequest.senderror.php', 1 => 'EventHttpRequest::sendError', ), 'next' => array ( 0 => 'eventhttprequest.sendreplychunk.php', 1 => 'EventHttpRequest::sendReplyChunk', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventhttprequest/sendreply.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL event >= 1.4.0-beta)
EventHttpRequest::sendReply — Send an HTML reply to the client
$code
,
string $reason
,
EventBuffer $buf
= ?): void
Send an HTML reply to the client. The body of the reply consists of data in
optional
buf
parameter.
code
The HTTP response code to send.
reason
A brief message to send with the response code.
buf
The body of the response.
No value is returned.