# A classe Yaf_Response_Abstract

(Yaf >=1.0.0)

## Introdução

## Resumo da classe

class Yaf_Response_Abstract {
/* Constantes */
const string DEFAULT_BODY = "content";
/* Propriedades */
protected $_header;
protected $_body;
protected $_sendheader;
/* Métodos */
public function __construct()
public function appendBody(string `$content`, string `$key` = ?): bool
public function clearBody(string `$key` = ?): bool
public function clearHeaders(): void
public function getBody(string `$key` = ?): mixed
public function getHeader(): void
public function prependBody(string `$content`, string `$key` = ?): bool
public function response(): void
protected function setAllHeaders(): void
public function setBody(string `$content`, string `$key` = ?): bool
public function setHeader(string `$name`, string `$value`, bool `$replace` = ?): bool
public function setRedirect(string `$url`): bool
private function __toString(): string
public function __destruct()
}

## Propriedades

_header

_body

_sendheader

## Índice

- Yaf_Response_Abstract::appendBody — Acrescenta ao corpo da resposta
- Yaf_Response_Abstract::clearBody — Descarta todo o corpo de resposta existente
- Yaf_Response_Abstract::clearHeaders — Descarta todos os cabeçalhos definidos
- Yaf_Response_Abstract::__construct — __construct
- Yaf_Response_Abstract::__destruct — __destruct
- Yaf_Response_Abstract::getBody — Recupera um conteúdo existente
- Yaf_Response_Abstract::getHeader — getHeader
- Yaf_Response_Abstract::prependBody — prependBody
- Yaf_Response_Abstract::response — Envia resposta
- Yaf_Response_Abstract::setAllHeaders — setAllHeaders
- Yaf_Response_Abstract::setBody — Define o conteúdo da resposta
- Yaf_Response_Abstract::setHeader — Define o cabeçalho da resposta
- Yaf_Response_Abstract::setRedirect — setRedirect
- Yaf_Response_Abstract::__toString — Obtém todo o corpo como um string

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open