Introduction
PHP Manual
PHP Manual»Yaf»Yaf_Response_Cli

The Yaf_Response_Cli class

(Yaf >=1.0.0)

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 Yaf_Response_Cli extends Yaf_Response_Abstract {
/* Properties */
/* Inherited methods */
public function Yaf_Response_Abstract::getBody(string $key = ?): mixed
public function Yaf_Response_Abstract::setHeader(
    string $name,
    string $value,
    bool $replace = false,
    int $response_code = 0
): bool
}
_header

_body

_sendheader

To Top