[Twisted-Python] Twisted HTTP client supporting failover for multiple A records?

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Thu Jul 15 08:56:45 MDT 2010


On 01:54 pm, luke-lists at hybrid-logic.co.uk wrote:
>On Thu, 2010-07-15 at 14:28 +0100, Reza Lotun wrote:
>> > I suspect you can do this without subclassing... pass in IP address, 
>>and
>> > just make sure you pass correct Host header. I forget the exact API
>> > though.
>
>[snip]
>But a separate class
>which uses the Agent's API makes a lot more sense, and it can equally
>provide the same interface as Agent so that any code which uses Agent
>can use it without modifications.

Hooray.  This is exactly the intended approach to extending Agent.  I'm 
glad you figured it out on your own. :)

Jean-Paul




More information about the Twisted-Python mailing list