Changeset 19922 for branches/version-2_5-dev/data/class/SC_Response.php
- Timestamp:
- 2011/01/16 00:37:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Response.php
r19913 r19922 40 40 var $header = array(); 41 41 42 var $statusTexts = array(43 '100' => 'Continue',44 '101' => 'Switching Protocols',45 '200' => 'OK',46 '201' => 'Created',47 '202' => 'Accepted',48 '203' => 'Non-Authoritative Information',49 '204' => 'No Content',50 '205' => 'Reset Content',51 '206' => 'Partial Content',52 '300' => 'Multiple Choices',53 '301' => 'Moved Permanently',54 '302' => 'Found',55 '303' => 'See Other',56 '304' => 'Not Modified',57 '305' => 'Use Proxy',58 '306' => '(Unused)',59 '307' => 'Temporary Redirect',60 '400' => 'Bad Request',61 '401' => 'Unauthorized',62 '402' => 'Payment Required',63 '403' => 'Forbidden',64 '404' => 'Not Found',65 '405' => 'Method Not Allowed',66 '406' => 'Not Acceptable',67 '407' => 'Proxy Authentication Required',68 '408' => 'Request Timeout',69 '409' => 'Conflict',70 '410' => 'Gone',71 '411' => 'Length Required',72 '412' => 'Precondition Failed',73 '413' => 'Request Entity Too Large',74 '414' => 'Request-URI Too Long',75 '415' => 'Unsupported Media Type',76 '416' => 'Requested Range Not Satisfiable',77 '417' => 'Expectation Failed',78 '500' => 'Internal Server Error',79 '501' => 'Not Implemented',80 '502' => 'Bad Gateway',81 '503' => 'Service Unavailable',82 '504' => 'Gateway Timeout',83 '505' => 'HTTP Version Not Supported',84 );85 86 87 42 /** 88 43 * … … 104 59 function sendHeader() { 105 60 // HTTPのヘッダ 106 // header('HTTP/1.1 '.$this->statuscode.' '.$this->statusTexts[$this->statuscode]);107 61 foreach ($this->header as $name => $head){ 108 62 header($name.': '.$head); … … 125 79 function containsHeader($name) { 126 80 return isset($this->header[$name]); 127 }128 129 function sendError($errorcode) {130 header('HTTP/1.1 '.$errorcode.' '.$this->statusTexts[$errorcode]);131 81 } 132 82
Note: See TracChangeset
for help on using the changeset viewer.