doc/rdoc/classes/Mongrel/HttpParser.src/M000048.html in mongrel-0.3.13.4 vs doc/rdoc/classes/Mongrel/HttpParser.src/M000048.html in mongrel-1.0
- old
+ new
@@ -3,26 +3,25 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>nread (Mongrel::HttpParser)</title>
+ <title>error? (Mongrel::HttpParser)</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>/**
* call-seq:
- * parser.nread -> Integer
+ * parser.error? -> true/false
*
- * 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.
+ * Tells you whether the parser is in an error state.
*/
-VALUE HttpParser_nread(VALUE self)
+VALUE HttpParser_has_error(VALUE self)
{
http_parser *http = NULL;
DATA_GET(self, http_parser, http);
- return INT2FIX(http->nread);
+ return http_parser_has_error(http) ? Qtrue : Qfalse;
}</pre>
</body>
</html>
\ No newline at end of file