<div class="gmail_quote">On Tue, Feb 9, 2010 at 19:38, Catonano <span dir="ltr"><<a href="mailto:catonano@gmail.com">catonano@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello people,<br><br>I'm taking a look at the HTTPPageDownloader implementation and there's a thing I don't understand.<br><br>There these three methods:<br><br><ol><li>handleStatus_200</li><li>handleResponsePart</li>
<li>handleResponseEnd</li></ol>How does the reactor know it has to call these methods ?<br><br>What if I want to add or remove or modify a method ? Will the reactor call them correctly anyway ? How comes ?<br><br>Thanks for any hint<br>
Catonano<br><font color="#888888"><br><br>-- <br>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à.<br>
<br>Less than one di Joseph Brodsky<br>
</font><br>_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
<br></blockquote></div>Hi,<br> 1. You can find it in handleEndHeaders, which decides to call method 'handleStatus_' + status if the method exists.<br> 2.3. These two method are called in method rawDataReceived in class HTTPClient, which is HTTPPageDownloader's parent.<br>
<br> I think you can grep all source files of twisted to find most answers if you don't know where is one method called. :)<br><br>---<br>wwwjfy<br>