Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17947 программистов и 1613 роботов. Сейчас ищут 1437 программистов ...
EventHttpRequest::sendReplyStart - Initiate a chunked reply
Вернуться к: EventHttpRequest
EventHttpRequest::sendReplyStart
(PECL event >= 1.4.0-beta)
EventHttpRequest::sendReplyStart — Initiate a chunked reply
Описание
public
void
EventHttpRequest::sendReplyStart
(
int
$code
,
string
$reason
)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() .
Список параметров
-
code
-
The HTTP response code to send.
-
reason
-
A brief message to send with the response code.
Возвращаемые значения
Эта функция не возвращает значения после выполнения.
Смотрите также
- EventHttpRequest::sendReplyChunk() - Send another data chunk as part of an ongoing chunked reply
- EventHttpRequest::sendReplyEnd() - Complete a chunked reply, freeing the request as appropriate
Вернуться к: EventHttpRequest