[drakma-devel] Sending content without loading it all in memory?

Zach Beane xach at xach.com
Wed Sep 10 15:11:15 UTC 2008


On Wed, Sep 10, 2008 at 11:07:49AM -0400, Zach Beane wrote:
> On Wed, Sep 10, 2008 at 05:03:33PM +0200, Edi Weitz wrote:
> > On Wed, 10 Sep 2008 09:20:30 -0400, Zach Beane <xach at xach.com> wrote:
> > 
> > > Is there any way to send a non-chunked request without having the
> > > entire content in memory at once?
> > 
> > You can set the content length header yourself.  In that case Drakma
> > shouldn't use chunked encoding IIRC.
> > 
> >   http://weitz.de/drakma/#content-length
> 
> Unfortunately that's not the case, as the documentation says:
[snip]

Or rather, you're right, but not chunking is only half the battle. I'd
like to avoid loading the whole content into memory too...

Zach



More information about the Drakma-devel mailing list