Zend Framework  1.12
Public Member Functions | List of all members
Zend_Controller_Response_HttpTestCase Class Reference

Public Member Functions

 sendHeaders ()
 "send" headers by returning array of all headers that would be sent
 
 canSendHeaders ($throw=false)
 Can we send headers?
 
 outputBody ()
 Return the concatenated body segments.
 
 getBody ($spec=false)
 Get body and/or body segments.
 
 sendResponse ()
 "send" Response
 

Additional Inherited Members

- Public Attributes inherited from Zend_Controller_Response_Abstract
 $headersSentThrowsException = true
 
- Protected Member Functions inherited from Zend_Controller_Response_Abstract
 _normalizeHeader ($name)
 Normalize a header name.
 
- Protected Attributes inherited from Zend_Controller_Response_Abstract
 $_body = array()
 
 $_exceptions = array()
 
 $_headers = array()
 
 $_headersRaw = array()
 
 $_httpResponseCode = 200
 
 $_isRedirect = false
 
 $_renderExceptions = false
 

Member Function Documentation

canSendHeaders (   $throw = false)

Can we send headers?

Parameters
bool$throw
Returns
void
getBody (   $spec = false)

Get body and/or body segments.

Parameters
bool | string$spec
Returns
string|array|null
outputBody ( )

Return the concatenated body segments.

Returns
string
sendHeaders ( )

"send" headers by returning array of all headers that would be sent

Returns
array
sendResponse ( )

"send" Response

Concats all response headers, and then final body (separated by two newlines)

Returns
string