Properties

Properties existing in the Solar_Http_Response class.

Public

$content

(string) The response body content.

Protected

$_config

(array) Collection point for configuration values.

Inherited from Solar_Base.

Note that you do not define config defaults in $_config directly.

<?php
// DO NOT DO THIS
protected $_config = array(
    'foo' => 'bar',
    'baz' => 'dib',
);

Instead, define config defaults in a protected property named for the class, withan underscore prefix.

For exmple, a "Vendor_Class_Name" class would define the default config array in "$_Vendor_Class_Name". This convention lets child classes inherit parent config keys and values.

<?php
// DO THIS INSTEAD
protected $_Vendor_Class_Name = array(
    'foo' => 'bar',
    'baz' => 'dib',
);

$_cookies

(array) All cookies to send at display() time.

$_cookies_httponly

(bool) Whether or not cookies should default being sent by HTTP only.

$_headers

(array) All headers to send at display() time.

$_no_cache

(bool) Should the response disable browser caching?

When true, the response will send these headers:

Pragma: no-cache
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Expires: 1

$_status_code

(int) The HTTP response status code.

$_status_text

(int) The HTTP response status text.

$_version

(string) The HTTP version to send as.

Private

None.



Local