#### Response
~~~
/**
* 構造函數
* @access public
* @param mixed $data 輸出數據
* @param int $code
* @param array $header
* @param array $options 輸出參數
*/
$response = new Response($data = '', $code = 200, array $header = [], $options = []);
/**
* 創建Response對象
* @access public
* @param mixed $data 輸出數據
* @param string $type 輸出類型
* @param int $code
* @param array $header
* @param array $options 輸出參數
* @return Response|JsonResponse|ViewResponse|XmlResponse|RedirectResponse|JsonpResponse
*/
Response::create($data = '', $type = '', $code = 200, array $header = [], $options = []);
/**
* 發送數據到客戶端
* @access public
* @return mixed
* @throws \InvalidArgumentException
*/
$response->send();
/**
* 處理數據
* @access protected
* @param mixed $data 要處理的數據
* @return mixed
*/
$this->output($data);
/**
* 輸出的參數
* @access public
* @param mixed $options 輸出參數
* @return $this
*/
$response->options($options = []);
/**
* 輸出數據設置
* @access public
* @param mixed $data 輸出數據
* @return $this
*/
$response->data($data);
/**
* 設置響應頭
* @access public
* @param string|array $name 參數名
* @param string $value 參數值
* @return $this
*/
$response->header($name, $value = null);
/**
* 設置頁面輸出內容
* @param $content
* @return $this
*/
$response->content($content);
/**
* 發送HTTP狀態
* @param integer $code 狀態碼
* @return $this
*/
$response->code($code);
/**
* LastModified
* @param string $time
* @return $this
*/
$response->lastModified($time);
/**
* Expires
* @param string $time
* @return $this
*/
$response->expires($time);
/**
* ETag
* @param string $eTag
* @return $this
*/
$response->eTag($eTag);
/**
* 頁面緩存控制
* @param string $cache 狀態碼
* @return $this
*/
$response->cacheControl($cache);
/**
* 頁面輸出類型
* @param string $contentType 輸出類型
* @param string $charset 輸出編碼
* @return $this
*/
$response->contentType($contentType, $charset = 'utf-8');
/**
* 獲取頭部信息
* @param string $name 頭部名稱
* @return mixed
*/
$response->getHeader($name = '');
/**
* 獲取原始數據
* @return mixed
*/
$response->getData();
/**
* 獲取輸出數據
* @return mixed
*/
$response->getContent();
/**
* 獲取狀態碼
* @return integer
*/
$response->getCode();
~~~