|
Previous Page |
Solar_Http_Response |
Next Page |
Methods
Public
__construct()- Constructor.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
__toString()- Sends all headers and cookies, then returns the body.
apiVersion()- Reports the API version for this class.
display()- Sends all headers and cookies, then prints the response content.
dump()- Dumps the values of this object.
getContent()- Gets the body content of the response.
getCookie()- Returns the value and options for a single cookie.
getCookies()- Returns the array of cookies that will be set by the response.
getHeader()- Returns the value of a single header.
getHeaders()- Returns the array of all headers to be sent with the response.
getStatusCode()- Returns the current status code.
getStatusText()- Returns the current status text.
getVersion()- Returns the HTTP version for this response.
locale()- Looks up class-specific locale strings based on a key.
setContent()- Sets the content of the response.
setCookie()- Sets a cookie value in $this->_cookies; will be sent to the client at display() time.
setCookiesHttponly()- By default, should cookies be sent by HTTP only?
setHeader()- Sets a header value in $this->_headers; will be sent to the client at display() time.
setStatusCode()- Sets the HTTP response status code.
setStatusText()- Sets the HTTP response status text.
setVersion()- Sets the HTTP version to '1.0' or '1.1'.
Protected
_exception()- Convenience method for returning exceptions with localized text.
_sendHeaders()- Sends all headers and cookies.
Private
None.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- __toString()
- _exception()
- _sendHeaders()
- apiVersion()
- display()
- dump()
- getContent()
- getCookie()
- getCookies()
- getHeader()
- getHeaders()
- getStatusCode()
- getStatusText()
- getVersion()
- locale()
- setContent()
- setCookie()
- setCookiesHttponly()
- setHeader()
- setStatusCode()
- setStatusText()
- setVersion()