Server IP : 66.29.132.122 / Your IP : 3.144.15.18 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/rdoc/classes/Rack/ |
Upload File : |
<?xml version="1.0" encoding="iso-8859-1"?> <!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> <title>Class: Rack::Request</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> <script type="text/javascript"> // <![CDATA[ function popupCode( url ) { window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") } function toggleCode( id ) { if ( document.getElementById ) elem = document.getElementById( id ); else if ( document.all ) elem = eval( "document.all." + id ); else return false; elemStyle = elem.style; if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else { elemStyle.display = "none" } return true; } // Make codeblocks hidden by default document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) // ]]> </script> </head> <body> <div id="classHeader"> <table class="header-table"> <tr class="top-aligned-row"> <td><strong>Class</strong></td> <td class="class-name-in-header">Rack::Request</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../../files/lib/rack/request_rb.html"> lib/rack/request.rb </a> <br /> </td> </tr> <tr class="top-aligned-row"> <td><strong>Parent:</strong></td> <td> Object </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> <div id="description"> <p> <a href="Request.html">Rack::Request</a> provides a convenient interface to a <a href="../Rack.html">Rack</a> environment. It is stateless, the environment <tt>env</tt> passed to the constructor will be directly modified. </p> <pre> req = Rack::Request.new(env) req.post? req.params["data"] </pre> </div> </div> <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> <a href="#M000326">GET</a> <a href="#M000327">POST</a> <a href="#M000331">[]</a> <a href="#M000332">[]=</a> <a href="#M000343">accept_encoding</a> <a href="#M000344">accept_language</a> <a href="#M000339">base_url</a> <a href="#M000294">body</a> <a href="#M000306">content_charset</a> <a href="#M000299">content_length</a> <a href="#M000300">content_type</a> <a href="#M000337">cookies</a> <a href="#M000314">delete?</a> <a href="#M000330">delete_param</a> <a href="#M000324">form_data?</a> <a href="#M000342">fullpath</a> <a href="#M000315">get?</a> <a href="#M000316">head?</a> <a href="#M000311">host</a> <a href="#M000309">host_with_port</a> <a href="#M000346">ip</a> <a href="#M000318">link?</a> <a href="#M000303">logger</a> <a href="#M000304">media_type</a> <a href="#M000305">media_type_params</a> <a href="#M000293">new</a> <a href="#M000317">options?</a> <a href="#M000328">params</a> <a href="#M000351">parse_http_accept_header</a> <a href="#M000350">parse_multipart</a> <a href="#M000349">parse_query</a> <a href="#M000325">parseable_data?</a> <a href="#M000319">patch?</a> <a href="#M000341">path</a> <a href="#M000296">path_info</a> <a href="#M000313">path_info=</a> <a href="#M000310">port</a> <a href="#M000320">post?</a> <a href="#M000321">put?</a> <a href="#M000298">query_string</a> <a href="#M000334">referer</a> <a href="#M000335">referrer</a> <a href="#M000348">reject_trusted_ip_addresses</a> <a href="#M000297">request_method</a> <a href="#M000307">scheme</a> <a href="#M000295">script_name</a> <a href="#M000312">script_name=</a> <a href="#M000301">session</a> <a href="#M000302">session_options</a> <a href="#M000347">split_ip_addresses</a> <a href="#M000308">ssl?</a> <a href="#M000322">trace?</a> <a href="#M000345">trusted_proxy?</a> <a href="#M000323">unlink?</a> <a href="#M000329">update_param</a> <a href="#M000340">url</a> <a href="#M000336">user_agent</a> <a href="#M000333">values_at</a> <a href="#M000338">xhr?</a> </div> </div> </div> <!-- if includes --> <div id="section"> <div id="constants-list"> <h3 class="section-bar">Constants</h3> <div class="name-list"> <table summary="Constants"> <tr class="top-aligned-row context-row"> <td class="context-item-name">FORM_DATA_MEDIA_TYPES</td> <td>=</td> <td class="context-item-value">[ 'application/x-www-form-urlencoded', 'multipart/form-data'</td> <td width="3em"> </td> <td class="context-item-desc"> The set of form-data media-types. Requests that do not indicate one of the media types presents in this list will not be eligible for form-data / param parsing. </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">PARSEABLE_DATA_MEDIA_TYPES</td> <td>=</td> <td class="context-item-value">[ 'multipart/related', 'multipart/mixed'</td> <td width="3em"> </td> <td class="context-item-desc"> The set of media-types. Requests that do not indicate one of the media types presents in this list will not be eligible for param parsing like soap attachments or generic multiparts </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DEFAULT_PORTS</td> <td>=</td> <td class="context-item-value">{ 'http' => 80, 'https' => 443, 'coffee' => 80 }</td> <td width="3em"> </td> <td class="context-item-desc"> Default ports depending on <a href="Request.html#M000307">scheme</a>. Used to decide whether or not to include the <a href="Request.html#M000310">port</a> in a generated URI. </td> </tr> </table> </div> </div> <div id="attribute-list"> <h3 class="section-bar">Attributes</h3> <div class="name-list"> <table> <tr class="top-aligned-row context-row"> <td class="context-item-name">env</td> <td class="context-item-value"> [R] </td> <td class="context-item-desc"> The environment of the request. </td> </tr> </table> </div> </div> <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> <div id="method-M000293" class="method-detail"> <a name="M000293"></a> <div class="method-heading"> <a href="Request.src/M000293.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000293.html');return false;"> <span class="method-name">new</span><span class="method-args">(env)</span> </a> </div> <div class="method-description"> </div> </div> <h3 class="section-bar">Public Instance methods</h3> <div id="method-M000326" class="method-detail"> <a name="M000326"></a> <div class="method-heading"> <a href="Request.src/M000326.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000326.html');return false;"> <span class="method-name">GET</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Returns the data received in the query string. </p> </div> </div> <div id="method-M000327" class="method-detail"> <a name="M000327"></a> <div class="method-heading"> <a href="Request.src/M000327.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000327.html');return false;"> <span class="method-name">POST</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Returns the data received in the request <a href="Request.html#M000294">body</a>. </p> <p> This method support both application/x-www-form-urlencoded and multipart/form-data. </p> </div> </div> <div id="method-M000331" class="method-detail"> <a name="M000331"></a> <div class="method-heading"> <a href="Request.src/M000331.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000331.html');return false;"> <span class="method-name">[]</span><span class="method-args">(key)</span> </a> </div> <div class="method-description"> <p> shortcut for request.params[key] </p> </div> </div> <div id="method-M000332" class="method-detail"> <a name="M000332"></a> <div class="method-heading"> <a href="Request.src/M000332.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000332.html');return false;"> <span class="method-name">[]=</span><span class="method-args">(key, value)</span> </a> </div> <div class="method-description"> <p> shortcut for request.params[key] = value </p> <p> Note that modifications will not be persisted in the env. Use <a href="Request.html#M000329">update_param</a> or <a href="Request.html#M000330">delete_param</a> if you want to destructively modify <a href="Request.html#M000328">params</a>. </p> </div> </div> <div id="method-M000343" class="method-detail"> <a name="M000343"></a> <div class="method-heading"> <a href="Request.src/M000343.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000343.html');return false;"> <span class="method-name">accept_encoding</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000344" class="method-detail"> <a name="M000344"></a> <div class="method-heading"> <a href="Request.src/M000344.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000344.html');return false;"> <span class="method-name">accept_language</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000339" class="method-detail"> <a name="M000339"></a> <div class="method-heading"> <a href="Request.src/M000339.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000339.html');return false;"> <span class="method-name">base_url</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000294" class="method-detail"> <a name="M000294"></a> <div class="method-heading"> <a href="Request.src/M000294.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000294.html');return false;"> <span class="method-name">body</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000306" class="method-detail"> <a name="M000306"></a> <div class="method-heading"> <a href="Request.src/M000306.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000306.html');return false;"> <span class="method-name">content_charset</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> The character set of the request <a href="Request.html#M000294">body</a> if a "charset" media type parameter was given, or nil if no "charset" was specified. Note that, per RFC2616, text/* media types that specify no explicit charset are to be considered ISO-8859-1. </p> </div> </div> <div id="method-M000299" class="method-detail"> <a name="M000299"></a> <div class="method-heading"> <a href="Request.src/M000299.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000299.html');return false;"> <span class="method-name">content_length</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000300" class="method-detail"> <a name="M000300"></a> <div class="method-heading"> <a href="Request.src/M000300.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000300.html');return false;"> <span class="method-name">content_type</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000337" class="method-detail"> <a name="M000337"></a> <div class="method-heading"> <a href="Request.src/M000337.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000337.html');return false;"> <span class="method-name">cookies</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000314" class="method-detail"> <a name="M000314"></a> <div class="method-heading"> <a href="Request.src/M000314.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000314.html');return false;"> <span class="method-name">delete?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Checks the HTTP request method (or verb) to see if it was of type DELETE </p> </div> </div> <div id="method-M000330" class="method-detail"> <a name="M000330"></a> <div class="method-heading"> <a href="Request.src/M000330.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000330.html');return false;"> <span class="method-name">delete_param</span><span class="method-args">(k)</span> </a> </div> <div class="method-description"> <p> Destructively delete a parameter, whether it‘s in <a href="Request.html#M000326">GET</a> or <a href="Request.html#M000327">POST</a>. Returns the value of the deleted parameter. </p> <p> If the parameter is in both <a href="Request.html#M000326">GET</a> and <a href="Request.html#M000327">POST</a>, the <a href="Request.html#M000327">POST</a> value takes precedence since that‘s how <a href="Request.html#M000328">params</a> works. </p> <p> <a href="http://'rack.input'">env</a> is not touched. </p> </div> </div> <div id="method-M000324" class="method-detail"> <a name="M000324"></a> <div class="method-heading"> <a href="Request.src/M000324.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000324.html');return false;"> <span class="method-name">form_data?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Determine whether the request <a href="Request.html#M000294">body</a> contains form-data by checking the request Content-Type for one of the media-types: "application/x-www-form-urlencoded" or "multipart/form-data". The list of form-data media types can be modified through the <tt>FORM_DATA_MEDIA_TYPES</tt> array. </p> <p> A request <a href="Request.html#M000294">body</a> is also assumed to contain form-data when no Content-Type header is provided and the <a href="Request.html#M000297">request_method</a> is <a href="Request.html#M000327">POST</a>. </p> </div> </div> <div id="method-M000342" class="method-detail"> <a name="M000342"></a> <div class="method-heading"> <a href="Request.src/M000342.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000342.html');return false;"> <span class="method-name">fullpath</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000315" class="method-detail"> <a name="M000315"></a> <div class="method-heading"> <a href="Request.src/M000315.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000315.html');return false;"> <span class="method-name">get?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Checks the HTTP request method (or verb) to see if it was of type <a href="Request.html#M000326">GET</a> </p> </div> </div> <div id="method-M000316" class="method-detail"> <a name="M000316"></a> <div class="method-heading"> <a href="Request.src/M000316.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000316.html');return false;"> <span class="method-name">head?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Checks the HTTP request method (or verb) to see if it was of type HEAD </p> </div> </div> <div id="method-M000311" class="method-detail"> <a name="M000311"></a> <div class="method-heading"> <a href="Request.src/M000311.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000311.html');return false;"> <span class="method-name">host</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000309" class="method-detail"> <a name="M000309"></a> <div class="method-heading"> <a href="Request.src/M000309.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000309.html');return false;"> <span class="method-name">host_with_port</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000346" class="method-detail"> <a name="M000346"></a> <div class="method-heading"> <a href="Request.src/M000346.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000346.html');return false;"> <span class="method-name">ip</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000318" class="method-detail"> <a name="M000318"></a> <div class="method-heading"> <a href="Request.src/M000318.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000318.html');return false;"> <span class="method-name">link?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Checks the HTTP request method (or verb) to see if it was of type LINK </p> </div> </div> <div id="method-M000303" class="method-detail"> <a name="M000303"></a> <div class="method-heading"> <a href="Request.src/M000303.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000303.html');return false;"> <span class="method-name">logger</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000304" class="method-detail"> <a name="M000304"></a> <div class="method-heading"> <a href="Request.src/M000304.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000304.html');return false;"> <span class="method-name">media_type</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> The media type (type/subtype) portion of the CONTENT_TYPE header without any media type parameters. e.g., when CONTENT_TYPE is "text/plain;charset=utf-8", the media-type is "text/plain". </p> <p> For more information on the use of media types in HTTP, see: <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7">www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7</a> </p> </div> </div> <div id="method-M000305" class="method-detail"> <a name="M000305"></a> <div class="method-heading"> <a href="Request.src/M000305.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000305.html');return false;"> <span class="method-name">media_type_params</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> The media type parameters provided in CONTENT_TYPE as a Hash, or an empty Hash if no CONTENT_TYPE or media-type parameters were provided. e.g., when the CONTENT_TYPE is "text/plain;charset=utf-8", this method responds with the following Hash: </p> <pre> { 'charset' => 'utf-8' } </pre> </div> </div> <div id="method-M000317" class="method-detail"> <a name="M000317"></a> <div class="method-heading"> <a href="Request.src/M000317.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000317.html');return false;"> <span class="method-name">options?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Checks the HTTP request method (or verb) to see if it was of type OPTIONS </p> </div> </div> <div id="method-M000328" class="method-detail"> <a name="M000328"></a> <div class="method-heading"> <a href="Request.src/M000328.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000328.html');return false;"> <span class="method-name">params</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> The union of <a href="Request.html#M000326">GET</a> and <a href="Request.html#M000327">POST</a> data. </p> <p> Note that modifications will not be persisted in the env. Use <a href="Request.html#M000329">update_param</a> or <a href="Request.html#M000330">delete_param</a> if you want to destructively modify <a href="Request.html#M000328">params</a>. </p> </div> </div> <div id="method-M000325" class="method-detail"> <a name="M000325"></a> <div class="method-heading"> <a href="Request.src/M000325.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000325.html');return false;"> <span class="method-name">parseable_data?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Determine whether the request <a href="Request.html#M000294">body</a> contains data by checking the request <a href="Request.html#M000304">media_type</a> against registered parse-data media-types </p> </div> </div> <div id="method-M000319" class="method-detail"> <a name="M000319"></a> <div class="method-heading"> <a href="Request.src/M000319.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000319.html');return false;"> <span class="method-name">patch?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Checks the HTTP request method (or verb) to see if it was of type PATCH </p> </div> </div> <div id="method-M000341" class="method-detail"> <a name="M000341"></a> <div class="method-heading"> <a href="Request.src/M000341.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000341.html');return false;"> <span class="method-name">path</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000296" class="method-detail"> <a name="M000296"></a> <div class="method-heading"> <a href="Request.src/M000296.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000296.html');return false;"> <span class="method-name">path_info</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000313" class="method-detail"> <a name="M000313"></a> <div class="method-heading"> <a href="Request.src/M000313.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000313.html');return false;"> <span class="method-name">path_info=</span><span class="method-args">(s)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000310" class="method-detail"> <a name="M000310"></a> <div class="method-heading"> <a href="Request.src/M000310.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000310.html');return false;"> <span class="method-name">port</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000320" class="method-detail"> <a name="M000320"></a> <div class="method-heading"> <a href="Request.src/M000320.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000320.html');return false;"> <span class="method-name">post?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Checks the HTTP request method (or verb) to see if it was of type <a href="Request.html#M000327">POST</a> </p> </div> </div> <div id="method-M000321" class="method-detail"> <a name="M000321"></a> <div class="method-heading"> <a href="Request.src/M000321.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000321.html');return false;"> <span class="method-name">put?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Checks the HTTP request method (or verb) to see if it was of type PUT </p> </div> </div> <div id="method-M000298" class="method-detail"> <a name="M000298"></a> <div class="method-heading"> <a href="Request.src/M000298.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000298.html');return false;"> <span class="method-name">query_string</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000334" class="method-detail"> <a name="M000334"></a> <div class="method-heading"> <a href="Request.src/M000334.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000334.html');return false;"> <span class="method-name">referer</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> the <a href="Request.html#M000334">referer</a> of the client </p> </div> </div> <div id="method-M000335" class="method-detail"> <a name="M000335"></a> <div class="method-heading"> <span class="method-name">referrer</span><span class="method-args">()</span> </div> <div class="method-description"> <p> Alias for <a href="Request.html#M000334">referer</a> </p> </div> </div> <div id="method-M000297" class="method-detail"> <a name="M000297"></a> <div class="method-heading"> <a href="Request.src/M000297.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000297.html');return false;"> <span class="method-name">request_method</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000307" class="method-detail"> <a name="M000307"></a> <div class="method-heading"> <a href="Request.src/M000307.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000307.html');return false;"> <span class="method-name">scheme</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000295" class="method-detail"> <a name="M000295"></a> <div class="method-heading"> <a href="Request.src/M000295.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000295.html');return false;"> <span class="method-name">script_name</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000312" class="method-detail"> <a name="M000312"></a> <div class="method-heading"> <a href="Request.src/M000312.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000312.html');return false;"> <span class="method-name">script_name=</span><span class="method-args">(s)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000301" class="method-detail"> <a name="M000301"></a> <div class="method-heading"> <a href="Request.src/M000301.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000301.html');return false;"> <span class="method-name">session</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000302" class="method-detail"> <a name="M000302"></a> <div class="method-heading"> <a href="Request.src/M000302.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000302.html');return false;"> <span class="method-name">session_options</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000308" class="method-detail"> <a name="M000308"></a> <div class="method-heading"> <a href="Request.src/M000308.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000308.html');return false;"> <span class="method-name">ssl?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000322" class="method-detail"> <a name="M000322"></a> <div class="method-heading"> <a href="Request.src/M000322.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000322.html');return false;"> <span class="method-name">trace?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Checks the HTTP request method (or verb) to see if it was of type TRACE </p> </div> </div> <div id="method-M000345" class="method-detail"> <a name="M000345"></a> <div class="method-heading"> <a href="Request.src/M000345.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000345.html');return false;"> <span class="method-name">trusted_proxy?</span><span class="method-args">(ip)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000323" class="method-detail"> <a name="M000323"></a> <div class="method-heading"> <a href="Request.src/M000323.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000323.html');return false;"> <span class="method-name">unlink?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Checks the HTTP request method (or verb) to see if it was of type UNLINK </p> </div> </div> <div id="method-M000329" class="method-detail"> <a name="M000329"></a> <div class="method-heading"> <a href="Request.src/M000329.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000329.html');return false;"> <span class="method-name">update_param</span><span class="method-args">(k, v)</span> </a> </div> <div class="method-description"> <p> Destructively update a parameter, whether it‘s in <a href="Request.html#M000326">GET</a> and/or <a href="Request.html#M000327">POST</a>. Returns nil. </p> <p> The parameter is updated wherever it was previous defined, so <a href="Request.html#M000326">GET</a>, <a href="Request.html#M000327">POST</a>, or both. If it wasn‘t previously defined, it‘s inserted into <a href="Request.html#M000326">GET</a>. </p> <p> <a href="http://'rack.input'">env</a> is not touched. </p> </div> </div> <div id="method-M000340" class="method-detail"> <a name="M000340"></a> <div class="method-heading"> <a href="Request.src/M000340.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000340.html');return false;"> <span class="method-name">url</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Tries to return a remake of the original request URL as a string. </p> </div> </div> <div id="method-M000336" class="method-detail"> <a name="M000336"></a> <div class="method-heading"> <a href="Request.src/M000336.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000336.html');return false;"> <span class="method-name">user_agent</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000333" class="method-detail"> <a name="M000333"></a> <div class="method-heading"> <a href="Request.src/M000333.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000333.html');return false;"> <span class="method-name">values_at</span><span class="method-args">(*keys)</span> </a> </div> <div class="method-description"> <p> like Hash#values_at </p> </div> </div> <div id="method-M000338" class="method-detail"> <a name="M000338"></a> <div class="method-heading"> <a href="Request.src/M000338.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000338.html');return false;"> <span class="method-name">xhr?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> <h3 class="section-bar">Protected Instance methods</h3> <div id="method-M000351" class="method-detail"> <a name="M000351"></a> <div class="method-heading"> <a href="Request.src/M000351.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000351.html');return false;"> <span class="method-name">parse_http_accept_header</span><span class="method-args">(header)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000350" class="method-detail"> <a name="M000350"></a> <div class="method-heading"> <a href="Request.src/M000350.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000350.html');return false;"> <span class="method-name">parse_multipart</span><span class="method-args">(env)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000349" class="method-detail"> <a name="M000349"></a> <div class="method-heading"> <a href="Request.src/M000349.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000349.html');return false;"> <span class="method-name">parse_query</span><span class="method-args">(qs)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000348" class="method-detail"> <a name="M000348"></a> <div class="method-heading"> <a href="Request.src/M000348.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000348.html');return false;"> <span class="method-name">reject_trusted_ip_addresses</span><span class="method-args">(ip_addresses)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000347" class="method-detail"> <a name="M000347"></a> <div class="method-heading"> <a href="Request.src/M000347.html" target="Code" class="method-signature" onclick="popupCode('Request.src/M000347.html');return false;"> <span class="method-name">split_ip_addresses</span><span class="method-args">(ip_addresses)</span> </a> </div> <div class="method-description"> </div> </div> </div> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>