ext/kcar/kcar.c in kcar-0.1.0 vs ext/kcar/kcar.c in kcar-0.1.1
- old
+ new
@@ -1337,9 +1337,16 @@
return OFFT2NUM(hp->len.content);
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);
return HP_FL_TEST(hp, CHUNKED) ? Qtrue : Qfalse;