php8.5
Home/ Manual/ reference / yaf/ The Yaf_Response_Cli class

The Yaf_Response_Cli class

Yaf_Response_Cli is the response adapter used for command-line (CLI) requests. Unlike its HTTP counterpart, it does not send headers, but simply accumulates the response body and outputs it directly when the dispatch cycle completes.

Intro

Yaf_Response_Cli is the response adapter used for command-line (CLI) requests. Unlike its HTTP counterpart, it does not send headers, but simply accumulates the response body and outputs it directly when the dispatch cycle completes.

Class synopsis

class Yaf_Response_Cli { }

Properties

_header
_body
_sendheader

Source: reference/yaf/yaf-response-cli.xml · from the official PHP manual (php/doc-en)