diff options
author | Gibheer <gibheer@gmail.com> | 2012-11-26 21:40:21 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2012-11-26 21:40:21 +0100 |
commit | 37a4a28deec224f7cd9a5a124e22258e868913e4 (patch) | |
tree | 23f8ce9b940ff1a357336344388cbcd46aa57ee7 /doc/Zero/Request/Server.html | |
parent | 77a2cbe6d4e8752a9450e945724522d10cfb5f09 (diff) |
added the first set of documentation
Diffstat (limited to 'doc/Zero/Request/Server.html')
-rw-r--r-- | doc/Zero/Request/Server.html | 687 |
1 files changed, 687 insertions, 0 deletions
diff --git a/doc/Zero/Request/Server.html b/doc/Zero/Request/Server.html new file mode 100644 index 0000000..2a187d8 --- /dev/null +++ b/doc/Zero/Request/Server.html @@ -0,0 +1,687 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title> + Class: Zero::Request::Server + + — Documentation by YARD 0.8.3 + +</title> + + <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" /> + + <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" /> + +<script type="text/javascript" charset="utf-8"> + hasFrames = window.top.frames.main ? true : false; + relpath = '../../'; + framesUrl = "../../frames.html#!" + escape(window.location.href); +</script> + + + <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script> + + <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script> + + + </head> + <body> + <div id="header"> + <div id="menu"> + + <a href="../../_index.html">Index (S)</a> » + <span class='title'><span class='object_link'><a href="../../Zero.html" title="Zero (module)">Zero</a></span></span> » <span class='title'><span class='object_link'><a href="../Request.html" title="Zero::Request (class)">Request</a></span></span> + » + <span class="title">Server</span> + + + <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div> +</div> + + <div id="search"> + + <a class="full_list_link" id="class_list_link" + href="../../class_list.html"> + Class List + </a> + + <a class="full_list_link" id="method_list_link" + href="../../method_list.html"> + Method List + </a> + + <a class="full_list_link" id="file_list_link" + href="../../file_list.html"> + File List + </a> + +</div> + <div class="clear"></div> + </div> + + <iframe id="search_frame"></iframe> + + <div id="content"><h1>Class: Zero::Request::Server + + + +</h1> + +<dl class="box"> + + <dt class="r1">Inherits:</dt> + <dd class="r1"> + <span class="inheritName">Object</span> + + <ul class="fullTree"> + <li>Object</li> + + <li class="next">Zero::Request::Server</li> + + </ul> + <a href="#" class="inheritanceTree">show all</a> + + </dd> + + + + + + + + + + <dt class="r2 last">Defined in:</dt> + <dd class="r2 last">lib/zero/request/server.rb</dd> + +</dl> +<div class="clear"></div> + +<h2>Overview</h2><div class="docstring"> + <div class="discussion"> + +<p>This class represents all server related information of a request.</p> + + + </div> +</div> +<div class="tags"> + + +</div> + <h2>Constant Summary</h2> + + <dl class="constants"> + + <dt id="KEY_SERVER_NAME-constant" class="">KEY_SERVER_NAME = + <div class="docstring"> + <div class="discussion"> + <p class="note private"> + <strong>This constant is part of a private API.</strong> + You should avoid using this constant if possible, as it may be removed or be changed in the future. +</p> + +<p>the key for the server name</p> + + + </div> +</div> +<div class="tags"> + + +</div> + </dt> + <dd><pre class="code"><span class='string val'>'SERVER_NAME'</span> +</pre></dd> + + <dt id="KEY_SERVER_PORT-constant" class="">KEY_SERVER_PORT = + <div class="docstring"> + <div class="discussion"> + <p class="note private"> + <strong>This constant is part of a private API.</strong> + You should avoid using this constant if possible, as it may be removed or be changed in the future. +</p> + +<p>the key for the server port</p> + + + </div> +</div> +<div class="tags"> + + +</div> + </dt> + <dd><pre class="code"><span class='string val'>'SERVER_PORT'</span> +</pre></dd> + + <dt id="KEY_SERVER_PROTOCOL-constant" class="">KEY_SERVER_PROTOCOL = + <div class="docstring"> + <div class="discussion"> + <p class="note private"> + <strong>This constant is part of a private API.</strong> + You should avoid using this constant if possible, as it may be removed or be changed in the future. +</p> + +<p>the key for the server protocol</p> + + + </div> +</div> +<div class="tags"> + + +</div> + </dt> + <dd><pre class="code"><span class='string val'>'SERVER_PROTOCOL'</span> +</pre></dd> + + <dt id="KEY_SERVER_SOFTWARE-constant" class="">KEY_SERVER_SOFTWARE = + <div class="docstring"> + <div class="discussion"> + <p class="note private"> + <strong>This constant is part of a private API.</strong> + You should avoid using this constant if possible, as it may be removed or be changed in the future. +</p> + +<p>the key for the server software</p> + + + </div> +</div> +<div class="tags"> + + +</div> + </dt> + <dd><pre class="code"><span class='string val'>'SERVER_SOFTWARE'</span> +</pre></dd> + + </dl> + + + + + + <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2> + <ul class="summary"> + + <li class="public "> + <span class="summary_signature"> + + <a href="#hostname-instance_method" title="#hostname (instance method)">- (String) <strong>hostname</strong> </a> + + + + </span> + + + + + <span class="note title readonly">readonly</span> + + + + + + + + + + <span class="summary_desc"><div class='inline'> +<p>get the hostname of the server.</p> +</div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + + <a href="#port-instance_method" title="#port (instance method)">- (Numeric) <strong>port</strong> </a> + + + + </span> + + + + + <span class="note title readonly">readonly</span> + + + + + + + + + + <span class="summary_desc"><div class='inline'> +<p>get the port.</p> +</div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + + <a href="#protocol-instance_method" title="#protocol (instance method)">- (String) <strong>protocol</strong> </a> + + + + </span> + + + + + <span class="note title readonly">readonly</span> + + + + + + + + + + <span class="summary_desc"><div class='inline'> +<p>get the protocol of the server (normally it should be HTTP/1.1).</p> +</div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + + <a href="#software-instance_method" title="#software (instance method)">- (String) <strong>software</strong> </a> + + + + </span> + + + + + <span class="note title readonly">readonly</span> + + + + + + + + + + <span class="summary_desc"><div class='inline'> +<p>get the server software.</p> +</div></span> + +</li> + + + </ul> + + + + + + <h2> + Instance Method Summary + <small>(<a href="#" class="summary_toggle">collapse</a>)</small> + </h2> + + <ul class="summary"> + + <li class="public "> + <span class="summary_signature"> + + <a href="#initialize-instance_method" title="#initialize (instance method)">- (Server) <strong>initialize</strong>(environment) </a> + + + + </span> + + + <span class="note title constructor">constructor</span> + + + + + + + + + <span class="summary_desc"><div class='inline'> +<p>This creates a new server instance extracting all server related.</p> +</div></span> + +</li> + + + </ul> + + +<div id="constructor_details" class="method_details_list"> + <h2>Constructor Details</h2> + + <div class="method_details first"> + <h3 class="signature first" id="initialize-instance_method"> + + - (<tt><span class='object_link'><a href="" title="Zero::Request::Server (class)">Server</a></span></tt>) <strong>initialize</strong>(environment) + + + + + +</h3><div class="docstring"> + <div class="discussion"> + +<p>This creates a new server instance extracting all server related</p> + +<pre class="code ruby18"><code>information from the environment.</code></pre> + + + </div> +</div> +<div class="tags"> + + +</div><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +20 +21 +22 +23 +24 +25</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/zero/request/server.rb', line 20</span> + +<span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_environment identifier id'>environment</span><span class='rparen token'>)</span> + <span class='rubyid_@hostname ivar id'>@hostname</span> <span class='assign token'>=</span> <span class='rubyid_environment identifier id'>environment</span><span class='lbrack token'>[</span><span class='rubyid_KEY_SERVER_NAME constant id'>KEY_SERVER_NAME</span><span class='rbrack token'>]</span> + <span class='rubyid_@port ivar id'>@port</span> <span class='assign token'>=</span> <span class='rubyid_environment identifier id'>environment</span><span class='lbrack token'>[</span><span class='rubyid_KEY_SERVER_PORT constant id'>KEY_SERVER_PORT</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span> + <span class='rubyid_@protocol ivar id'>@protocol</span> <span class='assign token'>=</span> <span class='rubyid_environment identifier id'>environment</span><span class='lbrack token'>[</span><span class='rubyid_KEY_SERVER_PROTOCOL constant id'>KEY_SERVER_PROTOCOL</span><span class='rbrack token'>]</span> + <span class='rubyid_@software ivar id'>@software</span> <span class='assign token'>=</span> <span class='rubyid_environment identifier id'>environment</span><span class='lbrack token'>[</span><span class='rubyid_KEY_SERVER_SOFTWARE constant id'>KEY_SERVER_SOFTWARE</span><span class='rbrack token'>]</span> +<span class='rubyid_end end kw'>end</span> +</pre> + </td> + </tr> +</table> +</div> + +</div> + + <div id="instance_attr_details" class="attr_details"> + <h2>Instance Attribute Details</h2> + + + <span id=""></span> + <div class="method_details first"> + <h3 class="signature first" id="hostname-instance_method"> + + - (<tt>String</tt>) <strong>hostname</strong> <span class="extras">(readonly)</span> + + + + + +</h3><div class="docstring"> + <div class="discussion"> + +<p>get the hostname of the server</p> + + + </div> +</div> +<div class="tags"> + +<p class="tag_title">Returns:</p> +<ul class="return"> + + <li> + + + <span class='type'>(<tt>String</tt>)</span> + + + + — + <div class='inline'> +<p>the hostname</p> +</div> + + </li> + +</ul> + +</div><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +32 +33 +34</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/zero/request/server.rb', line 32</span> + +<span class='rubyid_def def kw'>def</span> <span class='rubyid_hostname identifier id'>hostname</span> + <span class='rubyid_@hostname ivar id'>@hostname</span> +<span class='rubyid_end end kw'>end</span> +</pre> + </td> + </tr> +</table> +</div> + + + <span id=""></span> + <div class="method_details "> + <h3 class="signature " id="port-instance_method"> + + - (<tt>Numeric</tt>) <strong>port</strong> <span class="extras">(readonly)</span> + + + + + +</h3><div class="docstring"> + <div class="discussion"> + +<p>get the port</p> + + + </div> +</div> +<div class="tags"> + +<p class="tag_title">Returns:</p> +<ul class="return"> + + <li> + + + <span class='type'>(<tt>Numeric</tt>)</span> + + + + — + <div class='inline'> +<p>the port</p> +</div> + + </li> + +</ul> + +</div><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +29 +30 +31</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/zero/request/server.rb', line 29</span> + +<span class='rubyid_def def kw'>def</span> <span class='rubyid_port identifier id'>port</span> + <span class='rubyid_@port ivar id'>@port</span> +<span class='rubyid_end end kw'>end</span> +</pre> + </td> + </tr> +</table> +</div> + + + <span id=""></span> + <div class="method_details "> + <h3 class="signature " id="protocol-instance_method"> + + - (<tt>String</tt>) <strong>protocol</strong> <span class="extras">(readonly)</span> + + + + + +</h3><div class="docstring"> + <div class="discussion"> + +<p>get the protocol of the server (normally it should be HTTP/1.1)</p> + + + </div> +</div> +<div class="tags"> + +<p class="tag_title">Returns:</p> +<ul class="return"> + + <li> + + + <span class='type'>(<tt>String</tt>)</span> + + + + — + <div class='inline'> +<p>the protocol</p> +</div> + + </li> + +</ul> + +</div><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +35 +36 +37</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/zero/request/server.rb', line 35</span> + +<span class='rubyid_def def kw'>def</span> <span class='rubyid_protocol identifier id'>protocol</span> + <span class='rubyid_@protocol ivar id'>@protocol</span> +<span class='rubyid_end end kw'>end</span> +</pre> + </td> + </tr> +</table> +</div> + + + <span id=""></span> + <div class="method_details "> + <h3 class="signature " id="software-instance_method"> + + - (<tt>String</tt>) <strong>software</strong> <span class="extras">(readonly)</span> + + + + + +</h3><div class="docstring"> + <div class="discussion"> + +<p>get the server software</p> + + + </div> +</div> +<div class="tags"> + +<p class="tag_title">Returns:</p> +<ul class="return"> + + <li> + + + <span class='type'>(<tt>String</tt>)</span> + + + + — + <div class='inline'> +<p>the server software name</p> +</div> + + </li> + +</ul> + +</div><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +38 +39 +40</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/zero/request/server.rb', line 38</span> + +<span class='rubyid_def def kw'>def</span> <span class='rubyid_software identifier id'>software</span> + <span class='rubyid_@software ivar id'>@software</span> +<span class='rubyid_end end kw'>end</span> +</pre> + </td> + </tr> +</table> +</div> + + </div> + + +</div> + + <div id="footer"> + Generated on Mon Nov 26 21:40:01 2012 by + <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> + 0.8.3 (ruby-1.9.3). +</div> + + </body> +</html>
\ No newline at end of file |