D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
lib64
/
ruby
/
gems
/
1.8
/
doc
/
rack-1.6.1
/
rdoc
/
classes
/
Rack
/
Filename :
Multipart.html
back
Copy
<?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::Multipart</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::Multipart</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../../files/lib/rack/multipart/uploaded_file_rb.html"> lib/rack/multipart/uploaded_file.rb </a> <br /> <a href="../../files/lib/rack/multipart/parser_rb.html"> lib/rack/multipart/parser.rb </a> <br /> <a href="../../files/lib/rack/multipart/generator_rb.html"> lib/rack/multipart/generator.rb </a> <br /> <a href="../../files/lib/rack/multipart_rb.html"> lib/rack/multipart.rb </a> <br /> </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> <div id="description"> <p> A multipart form data parser, adapted from IOWA. </p> <p> Usually, <a href="Request.html#M000327">Rack::Request#POST</a> takes care of calling this. </p> </div> </div> <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> <a href="#M000056">build_multipart</a> <a href="#M000055">parse_multipart</a> </div> </div> </div> <!-- if includes --> <div id="section"> <div id="class-list"> <h3 class="section-bar">Classes and Modules</h3> Class <a href="Multipart/Generator.html" class="link">Rack::Multipart::Generator</a><br /> Class <a href="Multipart/MultipartPartLimitError.html" class="link">Rack::Multipart::MultipartPartLimitError</a><br /> Class <a href="Multipart/Parser.html" class="link">Rack::Multipart::Parser</a><br /> Class <a href="Multipart/UploadedFile.html" class="link">Rack::Multipart::UploadedFile</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">EOL</td> <td>=</td> <td class="context-item-value">"\r\n"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">MULTIPART_BOUNDARY</td> <td>=</td> <td class="context-item-value">"AaB03x"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">MULTIPART</td> <td>=</td> <td class="context-item-value">%r|\Amultipart/.*boundary=\"?([^\";,]+)\"?|ni</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TOKEN</td> <td>=</td> <td class="context-item-value">/[^\s()<>,;:\\"\/\[\]?=]+/</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">CONDISP</td> <td>=</td> <td class="context-item-value">/Content-Disposition:\s*#{TOKEN}\s*/i</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DISPPARM</td> <td>=</td> <td class="context-item-value">/;\s*(#{TOKEN})=("(?:\\"|[^"])*"|#{TOKEN})/</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">RFC2183</td> <td>=</td> <td class="context-item-value">/^#{CONDISP}(#{DISPPARM})+$/i</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">BROKEN_QUOTED</td> <td>=</td> <td class="context-item-value">/^#{CONDISP}.*;\sfilename="(.*?)"(?:\s*$|\s*;\s*#{TOKEN}=)/i</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">BROKEN_UNQUOTED</td> <td>=</td> <td class="context-item-value">/^#{CONDISP}.*;\sfilename=(#{TOKEN})/i</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">MULTIPART_CONTENT_TYPE</td> <td>=</td> <td class="context-item-value">/Content-Type: (.*)#{EOL}/ni</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">MULTIPART_CONTENT_DISPOSITION</td> <td>=</td> <td class="context-item-value">/Content-Disposition:.*\s+name="?([^\";]*)"?/ni</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">MULTIPART_CONTENT_ID</td> <td>=</td> <td class="context-item-value">/Content-ID:\s*([^#{EOL}]*)/ni</td> </tr> </table> </div> </div> <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> <div id="method-M000056" class="method-detail"> <a name="M000056"></a> <div class="method-heading"> <a href="Multipart.src/M000056.html" target="Code" class="method-signature" onclick="popupCode('Multipart.src/M000056.html');return false;"> <span class="method-name">build_multipart</span><span class="method-args">(params, first = true)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000055" class="method-detail"> <a name="M000055"></a> <div class="method-heading"> <a href="Multipart.src/M000055.html" target="Code" class="method-signature" onclick="popupCode('Multipart.src/M000055.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> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>