Sha256: b8bc12ac99a427fcbbc6c97193a5f5b36f0d0ec413043cf8063d9a8955622a0a

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

<?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>
<head>
  <title>reset (Mongrel::HttpResponse)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre>     <span class="ruby-comment cmt"># File lib/mongrel.rb, line 395</span>
395:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>
396:       <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@body_sent</span>
397:         <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;You have already sent the request body.&quot;</span>
398:       <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@header_sent</span>
399:         <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;You have already sent the request headers.&quot;</span>
400:       <span class="ruby-keyword kw">else</span>
401:         <span class="ruby-ivar">@header</span>.<span class="ruby-identifier">out</span>.<span class="ruby-identifier">truncate</span>(<span class="ruby-value">0</span>)
402:         <span class="ruby-ivar">@body</span>.<span class="ruby-identifier">close</span>
403:         <span class="ruby-ivar">@body</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>
404:       <span class="ruby-keyword kw">end</span>
405:     <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongrel-0.3.13.4 doc/rdoc/classes/Mongrel/HttpResponse.src/M000075.html