Posted on 2008-02-07 12:19:22-08 by mo
streaming with HTTP::Daemon
Hi,
I would like to use HTTP::Daemon in a streaming scenario where a client sends requests with "Transfer-Encoding: chunked". As far as I understand the Documentation and Code I could either let HTTP::Daemon::ClientConn read the whole request using
$c->get_request(0)
or use
$c->get_request(1)
and read the 'chunks' directly from the socket. Is this right?
I need a way to get my hands on the chunks as soon as they are received by the server (maybe by some sort of callback?). Any ideas how to achieve that without having to implement the socket-reading myself?
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.