Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Yaf_Response_Abstract::__toStringYaf_Response_Http>
^YafLast updated: Mon, 26 Oct 2026

The Yaf_Response_Cli class

(Yaf >=1.0.0)

Introduction

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 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
}

Properties

_header

_body

_sendheader


<Yaf_Response_Abstract::__toStringYaf_Response_Http>
^YafLast updated: Mon, 26 Oct 2026