array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), '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); ?>

EventHttpRequest::sendReply

(PECL event >= 1.4.0-beta)

EventHttpRequest::sendReplySend an HTML reply to the client

Açıklama

public EventHttpRequest::sendReply( int $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.

Bağımsız Değişkenler

code

The HTTP response code to send.

reason

A brief message to send with the response code.

buf

The body of the response.

Dönen Değerler

Hiçbir değer dönmez.

Ayrıca Bakınız