[Twisted-web] help on handle... methods

wwwjfy 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
> 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20100210/7feded82/attachment.htm 


More information about the Twisted-web mailing list