%PDF- %PDF-
Direktori : /proc/self/root/opt/cpanel/ea-ruby27/root/usr/share/gems/doc/rack-2.2.10/rdoc/ |
Current File : //proc/self/root/opt/cpanel/ea-ruby27/root/usr/share/gems/doc/rack-2.2.10/rdoc/Rack.html |
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>module Rack - rack-2.2.10 Documentation</title> <script type="text/javascript"> var rdoc_rel_prefix = "./"; var index_rel_prefix = "./"; </script> <script src="./js/navigation.js" defer></script> <script src="./js/search.js" defer></script> <script src="./js/search_index.js" defer></script> <script src="./js/searcher.js" defer></script> <script src="./js/darkfish.js" defer></script> <link href="./css/fonts.css" rel="stylesheet"> <link href="./css/rdoc.css" rel="stylesheet"> <body id="top" role="document" class="module"> <nav role="navigation"> <div id="project-navigation"> <div id="home-section" role="region" title="Quick navigation" class="nav-section"> <h2> <a href="./index.html" rel="home">Home</a> </h2> <div id="table-of-contents-navigation"> <a href="./table_of_contents.html#pages">Pages</a> <a href="./table_of_contents.html#classes">Classes</a> <a href="./table_of_contents.html#methods">Methods</a> </div> </div> <div id="search-section" role="search" class="project-section initially-hidden"> <form action="#" method="get" accept-charset="utf-8"> <div id="search-field-wrapper"> <input id="search-field" role="combobox" aria-label="Search" aria-autocomplete="list" aria-controls="search-results" type="text" name="search" placeholder="Search" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"> </div> <ul id="search-results" aria-label="Search Results" aria-busy="false" aria-expanded="false" aria-atomic="false" class="initially-hidden"></ul> </form> </div> </div> <div id="class-metadata"> <!-- Method Quickref --> <div id="method-list-section" class="nav-section"> <h3>Methods</h3> <ul class="link-list" role="directory"> <li ><a href="#method-c-release">::release</a> <li ><a href="#method-c-version">::version</a> </ul> </div> </div> </nav> <main role="main" aria-labelledby="module-Rack"> <h1 id="module-Rack" class="module"> module Rack </h1> <section class="description"> <p>Regexp has `match?` since Ruby 2.4 so to support Ruby < 2.4 we need to define this method</p> <p>The <a href="Rack.html"><code>Rack</code></a> main module, serving as a namespace for all core <a href="Rack.html"><code>Rack</code></a> modules and classes.</p> <p>All modules meant for use in your application are <code>autoload</code>ed here, so it should be enough just to <code>require 'rack'</code> in your code.</p> </section> <section id="5Buntitled-5D" class="documentation-section"> <section class="constants-list"> <header> <h3>Constants</h3> </header> <dl> <dt id="CACHE_CONTROL">CACHE_CONTROL <dd> <dt id="CONTENT_LENGTH">CONTENT_LENGTH <dd> <dt id="CONTENT_TYPE">CONTENT_TYPE <dd> <dt id="DELETE">DELETE <dd> <dt id="ETAG">ETAG <dd> <dt id="EXPIRES">EXPIRES <dd> <dt id="File">File <dd> <dt id="GET">GET <dd><p>HTTP method verbs</p> <dt id="HEAD">HEAD <dd> <dt id="HTTPS">HTTPS <dd> <dt id="HTTP_COOKIE">HTTP_COOKIE <dd> <dt id="HTTP_HOST">HTTP_HOST <dd> <dt id="HTTP_PORT">HTTP_PORT <dd> <dt id="HTTP_VERSION">HTTP_VERSION <dd> <dt id="LINK">LINK <dd> <dt id="OPTIONS">OPTIONS <dd> <dt id="PATCH">PATCH <dd> <dt id="PATH_INFO">PATH_INFO <dd> <dt id="POST">POST <dd> <dt id="PUT">PUT <dd> <dt id="QUERY_STRING">QUERY_STRING <dd> <dt id="RACK_ERRORS">RACK_ERRORS <dd> <dt id="RACK_HIJACK">RACK_HIJACK <dd> <dt id="RACK_HIJACK_IO">RACK_HIJACK_IO <dd> <dt id="RACK_INPUT">RACK_INPUT <dd> <dt id="RACK_IS_HIJACK">RACK_IS_HIJACK <dd> <dt id="RACK_LOGGER">RACK_LOGGER <dd> <dt id="RACK_METHODOVERRIDE_ORIGINAL_METHOD">RACK_METHODOVERRIDE_ORIGINAL_METHOD <dd> <dt id="RACK_MULTIPART_BUFFER_SIZE">RACK_MULTIPART_BUFFER_SIZE <dd> <dt id="RACK_MULTIPART_TEMPFILE_FACTORY">RACK_MULTIPART_TEMPFILE_FACTORY <dd> <dt id="RACK_MULTIPROCESS">RACK_MULTIPROCESS <dd> <dt id="RACK_MULTITHREAD">RACK_MULTITHREAD <dd> <dt id="RACK_RECURSIVE_INCLUDE">RACK_RECURSIVE_INCLUDE <dd> <dt id="RACK_REQUEST_COOKIE_HASH">RACK_REQUEST_COOKIE_HASH <dd> <dt id="RACK_REQUEST_COOKIE_STRING">RACK_REQUEST_COOKIE_STRING <dd> <dt id="RACK_REQUEST_FORM_HASH">RACK_REQUEST_FORM_HASH <dd> <dt id="RACK_REQUEST_FORM_INPUT">RACK_REQUEST_FORM_INPUT <dd> <dt id="RACK_REQUEST_FORM_VARS">RACK_REQUEST_FORM_VARS <dd> <dt id="RACK_REQUEST_QUERY_HASH">RACK_REQUEST_QUERY_HASH <dd> <dt id="RACK_REQUEST_QUERY_STRING">RACK_REQUEST_QUERY_STRING <dd> <dt id="RACK_RUNONCE">RACK_RUNONCE <dd> <dt id="RACK_SESSION">RACK_SESSION <dd> <dt id="RACK_SESSION_OPTIONS">RACK_SESSION_OPTIONS <dd> <dt id="RACK_SESSION_UNPACKED_COOKIE_DATA">RACK_SESSION_UNPACKED_COOKIE_DATA <dd> <dt id="RACK_SHOWSTATUS_DETAIL">RACK_SHOWSTATUS_DETAIL <dd> <dt id="RACK_TEMPFILES">RACK_TEMPFILES <dd> <dt id="RACK_URL_SCHEME">RACK_URL_SCHEME <dd> <dt id="RACK_VERSION">RACK_VERSION <dd><p><a href="Rack.html"><code>Rack</code></a> environment variables</p> <dt id="RELEASE">RELEASE <dd> <dt id="REQUEST_METHOD">REQUEST_METHOD <dd> <dt id="REQUEST_PATH">REQUEST_PATH <dd> <dt id="SCRIPT_NAME">SCRIPT_NAME <dd> <dt id="SERVER_NAME">SERVER_NAME <dd> <dt id="SERVER_PORT">SERVER_PORT <dd> <dt id="SERVER_PROTOCOL">SERVER_PROTOCOL <dd> <dt id="SET_COOKIE">SET_COOKIE <dd> <dt id="TRACE">TRACE <dd> <dt id="TRANSFER_ENCODING">TRANSFER_ENCODING <dd> <dt id="UNLINK">UNLINK <dd> <dt id="VERSION">VERSION <dd><p>The <a href="Rack.html"><code>Rack</code></a> protocol version number implemented.</p> </dl> </section> <section id="public-class-5Buntitled-5D-method-details" class="method-section"> <header> <h3>Public Class Methods</h3> </header> <div id="method-c-release" class="method-detail "> <div class="method-heading"> <span class="method-name">release</span><span class="method-args">()</span> <span class="method-click-advice">click to toggle source</span> </div> <div class="method-description"> <p>Return the <a href="Rack.html"><code>Rack</code></a> release as a dotted string.</p> <div class="method-source-code" id="release-source"> <pre><span class="ruby-comment"># File lib/rack/version.rb, line 26</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">release</span> <span class="ruby-constant">RELEASE</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div id="method-c-version" class="method-detail "> <div class="method-heading"> <span class="method-name">version</span><span class="method-args">()</span> <span class="method-click-advice">click to toggle source</span> </div> <div class="method-description"> <p>Return the <a href="Rack.html"><code>Rack</code></a> protocol version as a dotted string.</p> <div class="method-source-code" id="version-source"> <pre><span class="ruby-comment"># File lib/rack/version.rb, line 19</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">version</span> <span class="ruby-constant">VERSION</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">"."</span>) <span class="ruby-keyword">end</span></pre> </div> </div> </div> </section> </section> </main> <footer id="validator-badges" role="contentinfo"> <p><a href="https://validator.w3.org/check/referer">Validate</a> <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.1. <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>. </footer>