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_CliYaf_Route_Interface>
^YafLast updated: Mon, 26 Oct 2026

The Yaf_Response_Http class

(Yaf >=1.0.0)

Introduction

Yaf_Response_Http is the response adapter used for web requests. It accumulates the headers and body set during the dispatch cycle and sends them to the client when the dispatch completes, unless Yaf_Dispatcher::returnResponse() is enabled.

Class synopsis

class Yaf_Response_Http extends Yaf_Response_Abstract {
/* Properties */
protected $_sendheader;
protected $_response_code;
/* 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

_response_code


<Yaf_Response_CliYaf_Route_Interface>
^YafLast updated: Mon, 26 Oct 2026