PHP 8.6.0 RC3 available for testing

The Yaf_Response_Cli class

(Yaf >=1.0.0)

Introduzione

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.

Sommario della classe

class Yaf_Response_Cli extends Yaf_Response_Abstract {
/* Proprietà */
/* Metodi ereditati */
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
}

Proprietà

_header

_body

_sendheader

+add a note

User Contributed Notes

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