Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
* streaming input for large requests
@ 2010-08-10 22:23 John Leach
  2010-08-10 23:25 ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: John Leach @ 2010-08-10 22:23 UTC (permalink / raw)
  To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw

Hi,

I'm looking to be able to get access to the request body as it is
available on the socket, so I can process uploads on the fly, as they
stream in.

The docs suggest this is possible with rack.input:

"Exposes a streaming “rack.input“ to the Rack application that reads
data off the socket as the application reads it (while retaining
rewindable semantics as required by Rack). This allows Rack-compliant
apps/middleware to implement things such as real-time upload progress
monitoring."

But to be rewindable, I'm assuming they're being stored somewhere?  I'd
like to be able to handle huge request bodies bit by bit without having
them written to disk (or worse, stored in ram!).  Is there some way to
do this?

Thanks,

John.



_______________________________________________
Rainbows! mailing list - rainbows-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-11 22:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-10 22:23 streaming input for large requests John Leach
2010-08-10 23:25 ` Eric Wong
     [not found]   ` <20100810232527.GA14486-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2010-08-11  8:54     ` John Leach
2010-08-11 22:41     ` John Leach

Code repositories for project(s) associated with this inbox:

	../../../rainbows.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).