From 856a8a7e061845d5db617cc407c92aabdb4679a0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 2 May 2010 16:38:27 -0700 Subject: document Kcar::Parser#chunked? method --- ext/kcar/kcar.rl | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.2.3-24-ge0c7