Chunked transfer encoding

26 views
Skip to first unread message

Rob Welbourn

unread,
Jul 18, 2011, 3:31:18 PM7/18/11
to Kayak HTTP
Benjamin,

Does Kayak (or rather, HttpMachine) support chunked encoding? I can
see from the source that Transfer-Encoding is a header of interest,
and 'chunked' is a value of interest, but I don't see anywhere where
they are used.

Thanks,

Rob

Benjamin van der Veen

unread,
Jul 18, 2011, 3:42:32 PM7/18/11
to kayak...@googlegroups.com
Hey Rob,

Short answer is no. 

There are two sides to the story. On the request side, HttpMachine would/will implement the decoding of chunked request messages, and the request data passed to the parser delegate will represent the decoded data (without headers/trailers). I haven't tested chunked requests at all; based you your bug report it sounds like it crashes the parser.

On the response side, Kayak would/will deal with encoding the response data generated by the user code if it detected a Transfer-Encoding: chunked response header. Currently it doesn't do this, so to build a chunked response, you'd have to output the chunk headers/trailers yourself.

Benjamin
Reply all
Reply to author
Forward
0 new messages