[Twisted-web] A Question, TIA!

Laurens Van Houtven _ at lvh.cc
Thu Mar 21 10:32:18 EDT 2013


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 <xxy-php at qq.com> wrote:

> 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 at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>
>


-- 
cheers
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20130321/7a64f29b/attachment.htm 


More information about the Twisted-web mailing list