. namespace hoplite\http; require_once HOPLITE_ROOT . '/base/strict_object.php'; require_once HOPLITE_ROOT . '/http/response_code.php'; /*! A Response holds data processed by Action objects. When the RootController is Run(), a Response object is created. This response is used for any subsequent chained Actions. After processing, the OutputFilter will take the data and formulate the actual HTTP response body. */ class Response extends \hoplite\base\StrictObject { /*! @var integer The HTTP response code to return. */ public $response_code = ResponseCode::OK; /*! @var array A map of headers to values to be sent with the response. */ public $headers = array(); /*! @var string Raw HTTP response body. */ public $body = ''; /*! @var array Context data that is not sent to the output filter but is used to store application-specific information between Actions. */ public $context = array(); /*! @var array Model data. */ public $data = array(); }