Methods

All methods in the Solar_Http_Response class.

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.

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.

redirect()

Issues an immediate "Location" redirect.

redirectNoCache()

Redirects to another page and action after disabling HTTP caching.

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.

setNoCache()

Should the response disable HTTP caching?

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

_buildConfig()

Builds and returns the default config for a class, including all configs inherited from its parents.

_exception()

Convenience method for returning exceptions with localized text.

_postConfig()

A hook that activates after _buildConfig() in the constructor.

_postConstruct()

A hook that activates at the end of the constructor.

_preConfig()

A hook that activates before _buildConfig() in the constructor.

_sendHeaders()

Sends all headers and cookies.

Private

None.



Local