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

add a note

User Contributed Notes

There are no user contributed notes for this page.