EventHttpRequest::sendReply
PHP function
Edit on GitHub ✎
(PECL event >= 1.4.0-beta)
Send an HTML reply to the client
Description
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.
Parameters
codeThe HTTP response code to send.
reasonA brief message to send with the response code.
bufThe body of the response.
Return Values
Void
See Also
EventHttpRequest::sendErrorEventHttpRequest::sendReplyChunk