libwww-perl - streaming with HTTP::Daemon

Posted on Thu Feb 7 14:19:22 2008 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?
Write a response