Re: A Question, TIA!
Laurens Van Houtven <[email protected]> Thu, 21 Mar 2013 07:32:18 -0700
| Newsgroups | gmane.comp.python.twisted.web |
|---|---|
| Message-ID | <CAE_Hg6YN8-cf42=ddPSW2w6zJ08-R+9z=+9G0q2EHOXYyMSRdQ@mail.gmail.com> |
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 <[email protected]> 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 > [email protected] > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web > > -- cheers lvh _______________________________________________ Twisted-web mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web