I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
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