PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/self/root/opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/rdoc/classes/Rack/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/self/root/opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/rdoc/classes/Rack/Utils.html |
<?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>Module: Rack::Utils</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>Module</strong></td> <td class="class-name-in-header">Rack::Utils</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../../files/lib/rack/utils_rb.html"> lib/rack/utils.rb </a> <br /> <a href="../../files/lib/rack_rb.html"> lib/rack.rb </a> <br /> </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> <div id="description"> <p> <a href="Utils.html">Rack::Utils</a> contains a grab-bag of useful methods for writing web applications adopted from all kinds of Ruby libraries. </p> </div> </div> <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> <a href="#M000047">escape</a> <a href="#M000048">escape_path</a> <a href="#M000051">parse_query</a> <a href="#M000050">unescape</a> <a href="#M000049">unescape</a> </div> </div> </div> <!-- if includes --> <div id="section"> <div id="class-list"> <h3 class="section-bar">Classes and Modules</h3> Module <a href="Utils/OkJson.html" class="link">Rack::Utils::OkJson</a><br /> Class <a href="Utils/InvalidParameterError.html" class="link">Rack::Utils::InvalidParameterError</a><br /> Class <a href="Utils/ParameterTypeError.html" class="link">Rack::Utils::ParameterTypeError</a><br /> </div> <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">DEFAULT_SEP</td> <td>=</td> <td class="context-item-value">/[&;] */n</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">key_space_limit</td> <td class="context-item-value"> [RW] </td> <td class="context-item-desc"></td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">multipart_part_limit</td> <td class="context-item-value"> [RW] </td> <td class="context-item-desc"></td> </tr> </table> </div> </div> <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> <div id="method-M000047" class="method-detail"> <a name="M000047"></a> <div class="method-heading"> <a href="Utils.src/M000047.html" target="Code" class="method-signature" onclick="popupCode('Utils.src/M000047.html');return false;"> <span class="method-name">escape</span><span class="method-args">(s)</span> </a> </div> <div class="method-description"> <p> URI escapes. (CGI style space to +) </p> </div> </div> <div id="method-M000048" class="method-detail"> <a name="M000048"></a> <div class="method-heading"> <a href="Utils.src/M000048.html" target="Code" class="method-signature" onclick="popupCode('Utils.src/M000048.html');return false;"> <span class="method-name">escape_path</span><span class="method-args">(s)</span> </a> </div> <div class="method-description"> <p> Like URI escaping, but with %20 instead of +. Strictly speaking this is true URI escaping. </p> </div> </div> <div id="method-M000051" class="method-detail"> <a name="M000051"></a> <div class="method-heading"> <a href="Utils.src/M000051.html" target="Code" class="method-signature" onclick="popupCode('Utils.src/M000051.html');return false;"> <span class="method-name">parse_query</span><span class="method-args">(qs, d = nil, &unescaper)</span> </a> </div> <div class="method-description"> <p> Stolen from Mongrel, with some small modifications: Parses a query string by breaking it up at the ’&’ and ’;’ characters. You can also use this to parse cookies by changing the characters used in the second parameter (which defaults to ’&;’). </p> </div> </div> <div id="method-M000050" class="method-detail"> <a name="M000050"></a> <div class="method-heading"> <a href="Utils.src/M000050.html" target="Code" class="method-signature" onclick="popupCode('Utils.src/M000050.html');return false;"> <span class="method-name">unescape</span><span class="method-args">(s, encoding = nil)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000049" class="method-detail"> <a name="M000049"></a> <div class="method-heading"> <a href="Utils.src/M000049.html" target="Code" class="method-signature" onclick="popupCode('Utils.src/M000049.html');return false;"> <span class="method-name">unescape</span><span class="method-args">(s, encoding = Encoding::UTF_8)</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>