
Feb. 9, 2010
5:02 p.m.
On Tue, Feb 9, 2010 at 19:38, Catonano <catonano@gmail.com> wrote: > Hello people, > > I'm taking a look at the HTTPPageDownloader implementation and there's a > thing I don't understand. > > There these three methods: > > > 1. handleStatus_200 > 2. handleResponsePart > 3. handleResponseEnd > > How does the reactor know it has to call these methods ? > > What if I want to add or remove or modify a method ? Will the reactor call > them correctly anyway ? How comes ? > > Thanks for any hint > Catonano > > > -- > La difesa più sicura contro il male è l'estremo individualismo, > l'originalità di pensiero, la stravaganza, perfino, se volete, > l'eccentricità… Il male va matto per la solidarietà. > > Less than one di Joseph Brodsky > > _______________________________________________ > Twisted-web mailing list > Twisted-web@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web > > Hi, 1. You can find it in handleEndHeaders, which decides to call method 'handleStatus_' + status if the method exists. 2.3. These two method are called in method rawDataReceived in class HTTPClient, which is HTTPPageDownloader's parent. I think you can grep all source files of twisted to find most answers if you don't know where is one method called. :) --- wwwjfy