The HTTP::Message class of LWP (from which the HTTP::Request is a sub-class) allows a subroutine reference (or closure) as the argument to the content() method. When the content is given as this sort of reference, it is repeatedly called for data until it returns either undef or an empty string.
This will be key to my implementing streaming of messages in RPC::XML. But it isn't really documented at this point, so I thought I'd share.
Interesting (Score:2)
Re:Interesting (Score:2)
The problem is that the 3rd-party system we're working with uses an XML-RPC interface, but the data being sent is going to be huge. The goal is to avoid constructing the XML-RPC messages as in-memory strings, since they will be including base64 values that are encoded audio attachments.
The fact that I prefer not to back down on my existing compression support makes it harder, but I'm not going to back out a generally-useful feature like that in the name of a specific-requirement feature.
Matts [perl.org] made a good
--rjray