about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-05-02 16:38:27 -0700
committerEric Wong <normalperson@yhbt.net>2010-05-02 16:39:55 -0700
commit856a8a7e061845d5db617cc407c92aabdb4679a0 (patch)
tree12c4be7474165f0c3287c70fbe526df3d08b7741
parent7f1597ea01cac380393fb4d50e458204059beb24 (diff)
downloadkcar-856a8a7e061845d5db617cc407c92aabdb4679a0.tar.gz
-rw-r--r--ext/kcar/kcar.rl7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/kcar/kcar.rl b/ext/kcar/kcar.rl
index e53de45..5f2a1c1 100644
--- a/ext/kcar/kcar.rl
+++ b/ext/kcar/kcar.rl
@@ -467,6 +467,13 @@ static VALUE body_bytes_left(VALUE self)
   return Qnil;
 }
 
+/**
+ * Document-method: chunked
+ * call-seq:
+ *    parser.chunked? => true or false
+ *
+ * This is used to detect if a response uses chunked Transfer-Encoding or not.
+ */
 static VALUE chunked(VALUE self)
 {
   struct http_parser *hp = data_get(self);