doc/rdoc/classes/Mongrel/HttpParser.html in mongrel-0.3.13.4 vs doc/rdoc/classes/Mongrel/HttpParser.html in mongrel-1.0
- old
+ new
@@ -84,17 +84,17 @@
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000046">error?</a>
- <a href="#M000045">execute</a>
- <a href="#M000044">finish</a>
- <a href="#M000047">finished?</a>
- <a href="#M000042">new</a>
- <a href="#M000048">nread</a>
- <a href="#M000043">reset</a>
+ <a href="#M000048">error?</a>
+ <a href="#M000047">execute</a>
+ <a href="#M000046">finish</a>
+ <a href="#M000049">finished?</a>
+ <a href="#M000044">new</a>
+ <a href="#M000050">nread</a>
+ <a href="#M000045">reset</a>
</div>
</div>
</div>
@@ -112,36 +112,36 @@
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Class methods</h3>
- <div id="method-M000042" class="method-detail">
- <a name="M000042"></a>
+ <div id="method-M000044" class="method-detail">
+ <a name="M000044"></a>
<div class="method-heading">
- <a href="HttpParser.src/M000042.html" target="Code" class="method-signature"
- onclick="popupCode('HttpParser.src/M000042.html');return false;">
+ <a href="HttpParser.src/M000044.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpParser.src/M000044.html');return false;">
<span class="method-name">parser.new → parser<br />
</span>
</a>
</div>
<div class="method-description">
<p>
-Creates a new parser.
+Creates a <a href="HttpParser.html#M000044">new</a> parser.
</p>
</div>
</div>
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000046" class="method-detail">
- <a name="M000046"></a>
+ <div id="method-M000048" class="method-detail">
+ <a name="M000048"></a>
<div class="method-heading">
- <a href="HttpParser.src/M000046.html" target="Code" class="method-signature"
- onclick="popupCode('HttpParser.src/M000046.html');return false;">
+ <a href="HttpParser.src/M000048.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpParser.src/M000048.html');return false;">
<span class="method-name">parser.error? → true/false<br />
</span>
</a>
</div>
@@ -150,27 +150,27 @@
Tells you whether the parser is in an error state.
</p>
</div>
</div>
- <div id="method-M000045" class="method-detail">
- <a name="M000045"></a>
+ <div id="method-M000047" class="method-detail">
+ <a name="M000047"></a>
<div class="method-heading">
- <a href="HttpParser.src/M000045.html" target="Code" class="method-signature"
- onclick="popupCode('HttpParser.src/M000045.html');return false;">
+ <a href="HttpParser.src/M000047.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpParser.src/M000047.html');return false;">
<span class="method-name">parser.execute(req_hash, data, start) → Integer<br />
</span>
</a>
</div>
<div class="method-description">
<p>
Takes a Hash and a String of data, parses the String of data filling in the
Hash returning an Integer to indicate how much of the data has been read.
No matter what the return value, you should call HttpParser#finished? and
-HttpParser#error? to figure out if it’s done parsing or there was an
+HttpParser#error? to figure out if it‘s done parsing or there was an
error.
</p>
<p>
This function now throws an exception when there is a parsing error. This
makes the logic for working with the parser much easier. You can still test
@@ -183,35 +183,36 @@
so you have to append to the data buffer as you read.
</p>
</div>
</div>
- <div id="method-M000044" class="method-detail">
- <a name="M000044"></a>
+ <div id="method-M000046" class="method-detail">
+ <a name="M000046"></a>
<div class="method-heading">
- <a href="HttpParser.src/M000044.html" target="Code" class="method-signature"
- onclick="popupCode('HttpParser.src/M000044.html');return false;">
+ <a href="HttpParser.src/M000046.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpParser.src/M000046.html');return false;">
<span class="method-name">parser.finish → true/false<br />
</span>
</a>
</div>
<div class="method-description">
<p>
Finishes a parser early which could put in a "good" or bad state.
-You should call reset after finish it or bad things will happen.
+You should call <a href="HttpParser.html#M000045">reset</a> after <a
+href="HttpParser.html#M000046">finish</a> it or bad things will happen.
</p>
</div>
</div>
- <div id="method-M000047" class="method-detail">
- <a name="M000047"></a>
+ <div id="method-M000049" class="method-detail">
+ <a name="M000049"></a>
<div class="method-heading">
- <a href="HttpParser.src/M000047.html" target="Code" class="method-signature"
- onclick="popupCode('HttpParser.src/M000047.html');return false;">
+ <a href="HttpParser.src/M000049.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpParser.src/M000049.html');return false;">
<span class="method-name">parser.finished? → true/false<br />
</span>
</a>
</div>
@@ -220,44 +221,45 @@
Tells you whether the parser is finished or not and in a good state.
</p>
</div>
</div>
- <div id="method-M000048" class="method-detail">
- <a name="M000048"></a>
+ <div id="method-M000050" class="method-detail">
+ <a name="M000050"></a>
<div class="method-heading">
- <a href="HttpParser.src/M000048.html" target="Code" class="method-signature"
- onclick="popupCode('HttpParser.src/M000048.html');return false;">
+ <a href="HttpParser.src/M000050.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpParser.src/M000050.html');return false;">
<span class="method-name">parser.nread → Integer<br />
</span>
</a>
</div>
<div class="method-description">
<p>
Returns the amount of data processed so far during this processing cycle.
-It is set to 0 on initialize or reset calls and is incremented each time
-execute is called.
+It is set to 0 on initialize or <a href="HttpParser.html#M000045">reset</a>
+calls and is incremented each time <a
+href="HttpParser.html#M000047">execute</a> is called.
</p>
</div>
</div>
- <div id="method-M000043" class="method-detail">
- <a name="M000043"></a>
+ <div id="method-M000045" class="method-detail">
+ <a name="M000045"></a>
<div class="method-heading">
- <a href="HttpParser.src/M000043.html" target="Code" class="method-signature"
- onclick="popupCode('HttpParser.src/M000043.html');return false;">
+ <a href="HttpParser.src/M000045.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpParser.src/M000045.html');return false;">
<span class="method-name">parser.reset → nil<br />
</span>
</a>
</div>
<div class="method-description">
<p>
-Resets the parser to it’s initial state so that you can reuse it
-rather than making new ones.
+Resets the parser to it‘s initial state so that you can reuse it
+rather than making <a href="HttpParser.html#M000044">new</a> ones.
</p>
</div>
</div>
\ No newline at end of file