My program(Cumulus) receives http put(file by chunk).And then resend the file to another process(Hadoop). The trouble is that i need get the file object in my program(not stored on disk then read from). So where should i get it? rawDataReceived or allContentReceived?
Sounds like you want twisted.web.client.Agent; when you make a request you
get an IResponse object that has a deliverBody method that takes a
protocol. That protocol can receive chunks (dataReceived), or you could use
e.g. a LineReceiver if you know they're delimited chunks.
On Thu, Mar 21, 2013 at 12:48 AM, 小学园PHP
My program(Cumulus) receives http put(file by chunk). And then resend the file to another process(Hadoop). The trouble is that i need get the file object in my program*(not stored on disk then read from).* So where should i get it? rawDataReceived or allContentReceived?
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
-- cheers lvh
participants (2)
-
Laurens Van Houtven
-
小学园PHP