PHP 8.6.0 RC3 available for testing

The Yaf_Response_Cli class

(Yaf >=1.0.0)

Giriş

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.

Sınıf Sözdizimi

class Yaf_Response_Cli extends Yaf_Response_Abstract {
/* Özellikler */
/* Miras alınan yöntemler */
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
}

Özellikler

_header

_body

_sendheader

+add a note

User Contributed Notes

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