Ignore:
Timestamp:
2011/01/16 00:37:49 (13 years ago)
Author:
Seasoft
Message:

#628(未使用処理・定義などの削除)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_Response.php

    r19913 r19922  
    4040    var $header = array(); 
    4141 
    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  
    8742    /** 
    8843     * 
     
    10459    function sendHeader() { 
    10560        // HTTPのヘッダ 
    106         //        header('HTTP/1.1 '.$this->statuscode.' '.$this->statusTexts[$this->statuscode]); 
    10761        foreach ($this->header as $name => $head){ 
    10862            header($name.': '.$head); 
     
    12579    function containsHeader($name) { 
    12680        return isset($this->header[$name]); 
    127     } 
    128  
    129     function sendError($errorcode) { 
    130         header('HTTP/1.1 '.$errorcode.' '.$this->statusTexts[$errorcode]); 
    13181    } 
    13282 
Note: See TracChangeset for help on using the changeset viewer.