EventHttpRequest::sendReplyStart

(PECL event >= 1.4.0-beta)

EventHttpRequest::sendReplyStartInitiate 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.

반환값

값을 반환하지 않습니다.

참고

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top