[Twisted-web] help on handle... methods
wwwjfy at gmail.com
Tue Feb 9 12:02:45 EST 2010
On Tue, Feb 9, 2010 at 19:38, Catonano <catonano at 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
> 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 at twistedmatrix.com
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. :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-web