AlkantarClanX12

Your IP : 18.118.32.7


Current Path : /opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/rdoc/Rack/Response/
Upload File :
Current File : //opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/rdoc/Rack/Response/Helpers.html

<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta content="text/html; charset=US-ASCII" http-equiv="Content-Type" />

  <title>Module: Rack::Response::Helpers</title>

  <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />

  <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
  <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
  <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
  <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>

</head>
<body id="top" class="module">

  <div id="metadata">
    <div id="home-metadata">
      <div id="home-section" class="section">
        <h3 class="section-header">
          <a href="../../index.html">Home</a>
          <a href="../../index.html#classes">Classes</a>
          <a href="../../index.html#methods">Methods</a>
        </h3>
      </div>
    </div>

    <div id="file-metadata">
      <div id="file-list-section" class="section">
        <h3 class="section-header">In Files</h3>
        <div class="section-body">
          <ul>
          
            <li><a href="../../lib/rack/response_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
              class="thickbox" title="lib/rack/response.rb">lib/rack/response.rb</a></li>
          
          </ul>
        </div>
      </div>

      
    </div>

    <div id="class-metadata">
      

      

      

      
      <!-- Method Quickref -->
      <div id="method-list-section" class="section">
        <h3 class="section-header">Methods</h3>
        <ul class="link-list">
          
          <li><a href="#method-i-accepted-3F">#accepted?</a></li>
          
          <li><a href="#method-i-bad_request-3F">#bad_request?</a></li>
          
          <li><a href="#method-i-client_error-3F">#client_error?</a></li>
          
          <li><a href="#method-i-content_length">#content_length</a></li>
          
          <li><a href="#method-i-content_type">#content_type</a></li>
          
          <li><a href="#method-i-created-3F">#created?</a></li>
          
          <li><a href="#method-i-forbidden-3F">#forbidden?</a></li>
          
          <li><a href="#method-i-i_m_a_teapot-3F">#i_m_a_teapot?</a></li>
          
          <li><a href="#method-i-include-3F">#include?</a></li>
          
          <li><a href="#method-i-informational-3F">#informational?</a></li>
          
          <li><a href="#method-i-invalid-3F">#invalid?</a></li>
          
          <li><a href="#method-i-location">#location</a></li>
          
          <li><a href="#method-i-method_not_allowed-3F">#method_not_allowed?</a></li>
          
          <li><a href="#method-i-not_found-3F">#not_found?</a></li>
          
          <li><a href="#method-i-ok-3F">#ok?</a></li>
          
          <li><a href="#method-i-redirect-3F">#redirect?</a></li>
          
          <li><a href="#method-i-redirection-3F">#redirection?</a></li>
          
          <li><a href="#method-i-server_error-3F">#server_error?</a></li>
          
          <li><a href="#method-i-successful-3F">#successful?</a></li>
          
          <li><a href="#method-i-unauthorized-3F">#unauthorized?</a></li>
          
          <li><a href="#method-i-unprocessable-3F">#unprocessable?</a></li>
          
        </ul>
      </div>
      

      
    </div>

    <div id="project-metadata">
      
      
      <div id="fileindex-section" class="section project-section">
        <h3 class="section-header">Files</h3>
        <ul>
        
          <li class="file"><a href="../../KNOWN-ISSUES.html">KNOWN-ISSUES</a></li>
        
        </ul>
      </div>
      

      <div id="classindex-section" class="section project-section">
        <h3 class="section-header">Class/Module Index
          <span class="search-toggle"><img src="../../images/find.png"
            height="16" width="16" alt="[+]"
            title="show/hide quicksearch" /></span></h3>
        <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
        <fieldset>
          <legend>Quicksearch</legend>
          <input type="text" name="quicksearch" value=""
            class="quicksearch-field" />
        </fieldset>
        </form>

        <ul class="link-list">
        
          <li><a href="../../Rack.html">Rack</a></li>
        
          <li><a href="../../Rack/Auth.html">Rack::Auth</a></li>
        
          <li><a href="../../Rack/Auth/AbstractHandler.html">Rack::Auth::AbstractHandler</a></li>
        
          <li><a href="../../Rack/Auth/AbstractRequest.html">Rack::Auth::AbstractRequest</a></li>
        
          <li><a href="../../Rack/Auth/Basic.html">Rack::Auth::Basic</a></li>
        
          <li><a href="../../Rack/Auth/Basic/Request.html">Rack::Auth::Basic::Request</a></li>
        
          <li><a href="../../Rack/Auth/Digest.html">Rack::Auth::Digest</a></li>
        
          <li><a href="../../Rack/Auth/Digest/MD5.html">Rack::Auth::Digest::MD5</a></li>
        
          <li><a href="../../Rack/Auth/Digest/Nonce.html">Rack::Auth::Digest::Nonce</a></li>
        
          <li><a href="../../Rack/Auth/Digest/Params.html">Rack::Auth::Digest::Params</a></li>
        
          <li><a href="../../Rack/Auth/Digest/Request.html">Rack::Auth::Digest::Request</a></li>
        
          <li><a href="../../Rack/BodyProxy.html">Rack::BodyProxy</a></li>
        
          <li><a href="../../Rack/Builder.html">Rack::Builder</a></li>
        
          <li><a href="../../Rack/Cascade.html">Rack::Cascade</a></li>
        
          <li><a href="../../Rack/Chunked.html">Rack::Chunked</a></li>
        
          <li><a href="../../Rack/Chunked/Body.html">Rack::Chunked::Body</a></li>
        
          <li><a href="../../Rack/CommonLogger.html">Rack::CommonLogger</a></li>
        
          <li><a href="../../Rack/ConditionalGet.html">Rack::ConditionalGet</a></li>
        
          <li><a href="../../Rack/Config.html">Rack::Config</a></li>
        
          <li><a href="../../Rack/ContentLength.html">Rack::ContentLength</a></li>
        
          <li><a href="../../Rack/ContentType.html">Rack::ContentType</a></li>
        
          <li><a href="../../Rack/Deflater.html">Rack::Deflater</a></li>
        
          <li><a href="../../Rack/Deflater/DeflateStream.html">Rack::Deflater::DeflateStream</a></li>
        
          <li><a href="../../Rack/Deflater/GzipStream.html">Rack::Deflater::GzipStream</a></li>
        
          <li><a href="../../Rack/Directory.html">Rack::Directory</a></li>
        
          <li><a href="../../Rack/ETag.html">Rack::ETag</a></li>
        
          <li><a href="../../Rack/File.html">Rack::File</a></li>
        
          <li><a href="../../Rack/ForwardRequest.html">Rack::ForwardRequest</a></li>
        
          <li><a href="../../Rack/Handler.html">Rack::Handler</a></li>
        
          <li><a href="../../Rack/Handler/CGI.html">Rack::Handler::CGI</a></li>
        
          <li><a href="../../Rack/Handler/EventedMongrel.html">Rack::Handler::EventedMongrel</a></li>
        
          <li><a href="../../Rack/Handler/FastCGI.html">Rack::Handler::FastCGI</a></li>
        
          <li><a href="../../Rack/Handler/LSWS.html">Rack::Handler::LSWS</a></li>
        
          <li><a href="../../Rack/Handler/Mongrel.html">Rack::Handler::Mongrel</a></li>
        
          <li><a href="../../Rack/Handler/SCGI.html">Rack::Handler::SCGI</a></li>
        
          <li><a href="../../Rack/Handler/SwiftipliedMongrel.html">Rack::Handler::SwiftipliedMongrel</a></li>
        
          <li><a href="../../Rack/Handler/Thin.html">Rack::Handler::Thin</a></li>
        
          <li><a href="../../Rack/Handler/WEBrick.html">Rack::Handler::WEBrick</a></li>
        
          <li><a href="../../Rack/Head.html">Rack::Head</a></li>
        
          <li><a href="../../Rack/Lint.html">Rack::Lint</a></li>
        
          <li><a href="../../Rack/Lobster.html">Rack::Lobster</a></li>
        
          <li><a href="../../Rack/Lock.html">Rack::Lock</a></li>
        
          <li><a href="../../Rack/Logger.html">Rack::Logger</a></li>
        
          <li><a href="../../Rack/MethodOverride.html">Rack::MethodOverride</a></li>
        
          <li><a href="../../Rack/Mime.html">Rack::Mime</a></li>
        
          <li><a href="../../Rack/MockRequest.html">Rack::MockRequest</a></li>
        
          <li><a href="../../Rack/MockRequest/FatalWarner.html">Rack::MockRequest::FatalWarner</a></li>
        
          <li><a href="../../Rack/MockRequest/FatalWarning.html">Rack::MockRequest::FatalWarning</a></li>
        
          <li><a href="../../Rack/MockResponse.html">Rack::MockResponse</a></li>
        
          <li><a href="../../Rack/Multipart.html">Rack::Multipart</a></li>
        
          <li><a href="../../Rack/Multipart/Generator.html">Rack::Multipart::Generator</a></li>
        
          <li><a href="../../Rack/Multipart/MultipartPartLimitError.html">Rack::Multipart::MultipartPartLimitError</a></li>
        
          <li><a href="../../Rack/Multipart/Parser.html">Rack::Multipart::Parser</a></li>
        
          <li><a href="../../Rack/Multipart/UploadedFile.html">Rack::Multipart::UploadedFile</a></li>
        
          <li><a href="../../Rack/NullLogger.html">Rack::NullLogger</a></li>
        
          <li><a href="../../Rack/Recursive.html">Rack::Recursive</a></li>
        
          <li><a href="../../Rack/Reloader.html">Rack::Reloader</a></li>
        
          <li><a href="../../Rack/Reloader/Stat.html">Rack::Reloader::Stat</a></li>
        
          <li><a href="../../Rack/Request.html">Rack::Request</a></li>
        
          <li><a href="../../Rack/Response.html">Rack::Response</a></li>
        
          <li><a href="../../Rack/Response/Helpers.html">Rack::Response::Helpers</a></li>
        
          <li><a href="../../Rack/RewindableInput.html">Rack::RewindableInput</a></li>
        
          <li><a href="../../Rack/RewindableInput/Tempfile.html">Rack::RewindableInput::Tempfile</a></li>
        
          <li><a href="../../Rack/Runtime.html">Rack::Runtime</a></li>
        
          <li><a href="../../Rack/Sendfile.html">Rack::Sendfile</a></li>
        
          <li><a href="../../Rack/Server.html">Rack::Server</a></li>
        
          <li><a href="../../Rack/Server/Options.html">Rack::Server::Options</a></li>
        
          <li><a href="../../Rack/Session.html">Rack::Session</a></li>
        
          <li><a href="../../Rack/Session/Abstract.html">Rack::Session::Abstract</a></li>
        
          <li><a href="../../Rack/Session/Abstract/ID.html">Rack::Session::Abstract::ID</a></li>
        
          <li><a href="../../Rack/Session/Abstract/SessionHash.html">Rack::Session::Abstract::SessionHash</a></li>
        
          <li><a href="../../Rack/Session/Cookie.html">Rack::Session::Cookie</a></li>
        
          <li><a href="../../Rack/Session/Cookie/Base64.html">Rack::Session::Cookie::Base64</a></li>
        
          <li><a href="../../Rack/Session/Cookie/Base64/JSON.html">Rack::Session::Cookie::Base64::JSON</a></li>
        
          <li><a href="../../Rack/Session/Cookie/Base64/Marshal.html">Rack::Session::Cookie::Base64::Marshal</a></li>
        
          <li><a href="../../Rack/Session/Cookie/Base64/ZipJSON.html">Rack::Session::Cookie::Base64::ZipJSON</a></li>
        
          <li><a href="../../Rack/Session/Cookie/Identity.html">Rack::Session::Cookie::Identity</a></li>
        
          <li><a href="../../Rack/Session/Memcache.html">Rack::Session::Memcache</a></li>
        
          <li><a href="../../Rack/Session/Pool.html">Rack::Session::Pool</a></li>
        
          <li><a href="../../Rack/ShowExceptions.html">Rack::ShowExceptions</a></li>
        
          <li><a href="../../Rack/ShowStatus.html">Rack::ShowStatus</a></li>
        
          <li><a href="../../Rack/Static.html">Rack::Static</a></li>
        
          <li><a href="../../Rack/TempfileReaper.html">Rack::TempfileReaper</a></li>
        
          <li><a href="../../Rack/URLMap.html">Rack::URLMap</a></li>
        
          <li><a href="../../Rack/Utils.html">Rack::Utils</a></li>
        
          <li><a href="../../Rack/Utils/Context.html">Rack::Utils::Context</a></li>
        
          <li><a href="../../Rack/Utils/HeaderHash.html">Rack::Utils::HeaderHash</a></li>
        
          <li><a href="../../Rack/Utils/InvalidParameterError.html">Rack::Utils::InvalidParameterError</a></li>
        
          <li><a href="../../Rack/Utils/KeySpaceConstrainedParams.html">Rack::Utils::KeySpaceConstrainedParams</a></li>
        
          <li><a href="../../Rack/Multipart.html">Rack::Utils::Multipart</a></li>
        
          <li><a href="../../Rack/Utils/OkJson.html">Rack::Utils::OkJson</a></li>
        
          <li><a href="../../Rack/Utils/OkJson/Error.html">Rack::Utils::OkJson::Error</a></li>
        
          <li><a href="../../Rack/Utils/OkJson/Utf8Error.html">Rack::Utils::OkJson::Utf8Error</a></li>
        
          <li><a href="../../Rack/Utils/ParameterTypeError.html">Rack::Utils::ParameterTypeError</a></li>
        
          <li><a href="../../FCGI.html">FCGI</a></li>
        
          <li><a href="../../FCGI/Stream.html">FCGI::Stream</a></li>
        
          <li><a href="../../WEBrick.html">WEBrick</a></li>
        
          <li><a href="../../WEBrick/HTTPResponse.html">WEBrick::HTTPResponse</a></li>
        
          <li><a href="../../Object.html">Object</a></li>
        
        </ul>
        <div id="no-class-search-results" style="display: none;">No matching classes.</div>
      </div>

      
    </div>
  </div>

  <div id="documentation">
    <h1 class="module">Rack::Response::Helpers</h1>

    <div id="description" class="description">
      
    </div><!-- description -->

    
    
    
    <div id="5Buntitled-5D" class="documentation-section">
      

      

      

      
      <!-- Attributes -->
      <div id="attribute-method-details" class="method-section section">
        <h3 class="section-header">Attributes</h3>

        
        <div id="headers-attribute-method" class="method-detail">
          <a name="headers"></a>
          
          <div class="method-heading attribute-method-heading">
            <span class="method-name">headers</span><span
              class="attribute-access-type">[R]</span>
          </div>

          <div class="method-description">
          
          <p>Headers</p>
          
          </div>
        </div>
        
        <div id="original_headers-attribute-method" class="method-detail">
          <a name="original_headers"></a>
          
          <div class="method-heading attribute-method-heading">
            <span class="method-name">original_headers</span><span
              class="attribute-access-type">[R]</span>
          </div>

          <div class="method-description">
          
          <p>Headers</p>
          
          </div>
        </div>
        
      </div><!-- attribute-method-details -->
      

      <!-- Methods -->
      
      <div id="public-instance-method-details" class="method-section section">
        <h3 class="section-header">Public Instance Methods</h3>

      
        <div id="accepted-3F-method" class="method-detail ">
          <a name="method-i-accepted-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">accepted?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="accepted-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 128</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">accepted?</span>;           <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">202</span>;                        <span class="ruby-keyword">end</span></pre>
            </div><!-- accepted-3F-source -->
            
          </div>

          

          
        </div><!-- accepted-3F-method -->

      
        <div id="bad_request-3F-method" class="method-detail ">
          <a name="method-i-bad_request-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">bad_request?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="bad_request-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 129</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">bad_request?</span>;        <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">400</span>;                        <span class="ruby-keyword">end</span></pre>
            </div><!-- bad_request-3F-source -->
            
          </div>

          

          
        </div><!-- bad_request-3F-method -->

      
        <div id="client_error-3F-method" class="method-detail ">
          <a name="method-i-client_error-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">client_error?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="client_error-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 123</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">client_error?</span>;       <span class="ruby-identifier">status</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">400</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">500</span>;        <span class="ruby-keyword">end</span></pre>
            </div><!-- client_error-3F-source -->
            
          </div>

          

          
        </div><!-- client_error-3F-method -->

      
        <div id="content_length-method" class="method-detail ">
          <a name="method-i-content_length"></a>

          
          <div class="method-heading">
            <span class="method-name">content_length</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="content_length-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 150</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">content_length</span>
  <span class="ruby-identifier">cl</span> = <span class="ruby-identifier">headers</span>[<span class="ruby-constant">CONTENT_LENGTH</span>]
  <span class="ruby-identifier">cl</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">cl</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">cl</span>
<span class="ruby-keyword">end</span></pre>
            </div><!-- content_length-source -->
            
          </div>

          

          
        </div><!-- content_length-method -->

      
        <div id="content_type-method" class="method-detail ">
          <a name="method-i-content_type"></a>

          
          <div class="method-heading">
            <span class="method-name">content_type</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="content_type-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 146</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">content_type</span>
  <span class="ruby-identifier">headers</span>[<span class="ruby-constant">CONTENT_TYPE</span>]
<span class="ruby-keyword">end</span></pre>
            </div><!-- content_type-source -->
            
          </div>

          

          
        </div><!-- content_type-method -->

      
        <div id="created-3F-method" class="method-detail ">
          <a name="method-i-created-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">created?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="created-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 127</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">created?</span>;            <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">201</span>;                        <span class="ruby-keyword">end</span></pre>
            </div><!-- created-3F-source -->
            
          </div>

          

          
        </div><!-- created-3F-method -->

      
        <div id="forbidden-3F-method" class="method-detail ">
          <a name="method-i-forbidden-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">forbidden?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="forbidden-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 131</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">forbidden?</span>;          <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">403</span>;                        <span class="ruby-keyword">end</span></pre>
            </div><!-- forbidden-3F-source -->
            
          </div>

          

          
        </div><!-- forbidden-3F-method -->

      
        <div id="i_m_a_teapot-3F-method" class="method-detail ">
          <a name="method-i-i_m_a_teapot-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">i_m_a_teapot?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="i_m_a_teapot-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 134</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">i_m_a_teapot?</span>;       <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">418</span>;                        <span class="ruby-keyword">end</span></pre>
            </div><!-- i_m_a_teapot-3F-source -->
            
          </div>

          

          
        </div><!-- i_m_a_teapot-3F-method -->

      
        <div id="include-3F-method" class="method-detail ">
          <a name="method-i-include-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">include?</span><span
              class="method-args">(header)</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="include-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 142</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">header</span>)
  <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-identifier">headers</span>[<span class="ruby-identifier">header</span>]
<span class="ruby-keyword">end</span></pre>
            </div><!-- include-3F-source -->
            
          </div>

          

          
        </div><!-- include-3F-method -->

      
        <div id="informational-3F-method" class="method-detail ">
          <a name="method-i-informational-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">informational?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="informational-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 120</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">informational?</span>;      <span class="ruby-identifier">status</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">100</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">200</span>;        <span class="ruby-keyword">end</span></pre>
            </div><!-- informational-3F-source -->
            
          </div>

          

          
        </div><!-- informational-3F-method -->

      
        <div id="invalid-3F-method" class="method-detail ">
          <a name="method-i-invalid-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">invalid?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="invalid-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 118</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">invalid?</span>;            <span class="ruby-identifier">status</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">100</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">600</span>;        <span class="ruby-keyword">end</span></pre>
            </div><!-- invalid-3F-source -->
            
          </div>

          

          
        </div><!-- invalid-3F-method -->

      
        <div id="location-method" class="method-detail ">
          <a name="method-i-location"></a>

          
          <div class="method-heading">
            <span class="method-name">location</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="location-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 155</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">location</span>
  <span class="ruby-identifier">headers</span>[<span class="ruby-string">&quot;Location&quot;</span>]
<span class="ruby-keyword">end</span></pre>
            </div><!-- location-source -->
            
          </div>

          

          
        </div><!-- location-method -->

      
        <div id="method_not_allowed-3F-method" class="method-detail ">
          <a name="method-i-method_not_allowed-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">method_not_allowed?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="method_not_allowed-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 133</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">method_not_allowed?</span>; <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">405</span>;                        <span class="ruby-keyword">end</span></pre>
            </div><!-- method_not_allowed-3F-source -->
            
          </div>

          

          
        </div><!-- method_not_allowed-3F-method -->

      
        <div id="not_found-3F-method" class="method-detail ">
          <a name="method-i-not_found-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">not_found?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="not_found-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 132</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">not_found?</span>;          <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">404</span>;                        <span class="ruby-keyword">end</span></pre>
            </div><!-- not_found-3F-source -->
            
          </div>

          

          
        </div><!-- not_found-3F-method -->

      
        <div id="ok-3F-method" class="method-detail ">
          <a name="method-i-ok-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">ok?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="ok-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 126</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ok?</span>;                 <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">200</span>;                        <span class="ruby-keyword">end</span></pre>
            </div><!-- ok-3F-source -->
            
          </div>

          

          
        </div><!-- ok-3F-method -->

      
        <div id="redirect-3F-method" class="method-detail ">
          <a name="method-i-redirect-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">redirect?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="redirect-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 137</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">redirect?</span>;           [<span class="ruby-value">301</span>, <span class="ruby-value">302</span>, <span class="ruby-value">303</span>, <span class="ruby-value">307</span>].<span class="ruby-identifier">include?</span> <span class="ruby-identifier">status</span>; <span class="ruby-keyword">end</span></pre>
            </div><!-- redirect-3F-source -->
            
          </div>

          

          
        </div><!-- redirect-3F-method -->

      
        <div id="redirection-3F-method" class="method-detail ">
          <a name="method-i-redirection-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">redirection?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="redirection-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 122</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">redirection?</span>;        <span class="ruby-identifier">status</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">300</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">400</span>;        <span class="ruby-keyword">end</span></pre>
            </div><!-- redirection-3F-source -->
            
          </div>

          

          
        </div><!-- redirection-3F-method -->

      
        <div id="server_error-3F-method" class="method-detail ">
          <a name="method-i-server_error-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">server_error?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="server_error-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 124</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">server_error?</span>;       <span class="ruby-identifier">status</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">500</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">600</span>;        <span class="ruby-keyword">end</span></pre>
            </div><!-- server_error-3F-source -->
            
          </div>

          

          
        </div><!-- server_error-3F-method -->

      
        <div id="successful-3F-method" class="method-detail ">
          <a name="method-i-successful-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">successful?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="successful-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 121</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">successful?</span>;         <span class="ruby-identifier">status</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">200</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">300</span>;        <span class="ruby-keyword">end</span></pre>
            </div><!-- successful-3F-source -->
            
          </div>

          

          
        </div><!-- successful-3F-method -->

      
        <div id="unauthorized-3F-method" class="method-detail ">
          <a name="method-i-unauthorized-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">unauthorized?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="unauthorized-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 130</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">unauthorized?</span>;       <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">401</span>;                        <span class="ruby-keyword">end</span></pre>
            </div><!-- unauthorized-3F-source -->
            
          </div>

          

          
        </div><!-- unauthorized-3F-method -->

      
        <div id="unprocessable-3F-method" class="method-detail ">
          <a name="method-i-unprocessable-3F"></a>

          
          <div class="method-heading">
            <span class="method-name">unprocessable?</span><span
              class="method-args">()</span>
            <span class="method-click-advice">click to toggle source</span>
          </div>
          

          <div class="method-description">
            
            
            

            
            <div class="method-source-code" id="unprocessable-3F-source">
<pre>
<span class="ruby-comment"># File lib/rack/response.rb, line 135</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">unprocessable?</span>;      <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">422</span>;                        <span class="ruby-keyword">end</span></pre>
            </div><!-- unprocessable-3F-source -->
            
          </div>

          

          
        </div><!-- unprocessable-3F-method -->

      
      </div><!-- public-instance-method-details -->
    
    </div><!-- 5Buntitled-5D -->
  

  </div><!-- documentation -->

  <div id="validator-badges">
    <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
    <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
      Rdoc Generator</a> 2</small>.</p>
  </div>

</body>
</html>