Zend Framework
1.12
|
Public Member Functions | |
sendResponse () | |
Send the response, including all headers. | |
sendHeaders () | |
Send all headers. | |
setHeader ($name, $value, $replace=false) | |
Set a header. | |
getHeader ($name) | |
Check if a specific Header is set and return its value. | |
getHeaders () | |
Return array of headers; see $_headers for format. | |
canSendHeaders ($throw=false) | |
Can we send headers? | |
setHttpResponseCode ($code) | |
Set HTTP response code to use with headers. | |
getHttpResponseCode () | |
Retrieve HTTP response code. | |
setBody ($content) | |
Set body content. | |
getBody () | |
Return the body content. | |
Protected Member Functions | |
_normalizeHeader ($name) | |
Normalizes a header name to X-Capitalized-Names. | |
Protected Attributes | |
$_body = '' | |
$_headers = array() | |
$_httpResponseCode = 200 | |
|
protected |
Normalizes a header name to X-Capitalized-Names.
string | $name |
canSendHeaders | ( | $throw = false | ) |
Can we send headers?
boolean | $throw | Whether or not to throw an exception if headers have been sent; defaults to false |
Zend_Feed_Pubsubhubbub_Exception |
getBody | ( | ) |
Return the body content.
getHeader | ( | $name | ) |
Check if a specific Header is set and return its value.
string | $name |
getHeaders | ( | ) |
Return array of headers; see $_headers for format.
getHttpResponseCode | ( | ) |
Retrieve HTTP response code.
sendHeaders | ( | ) |
Send all headers.
Sends any headers specified. If an HTTP response code has been specified, it is sent with the first header.
sendResponse | ( | ) |
Send the response, including all headers.
setBody | ( | $content | ) |
setHeader | ( | $name, | |
$value, | |||
$replace = false |
|||
) |
Set a header.
If $replace is true, replaces any headers already defined with that $name.
string | $name | |
string | $value | |
boolean | $replace |
setHttpResponseCode | ( | $code | ) |
Set HTTP response code to use with headers.
int | $code |
|
protected |
|
protected |
|
protected |