launchpad proxy support

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Oct 30 14:37:35 GMT 2009


>>>>> "Gordon" == Gordon Tyler <gordon at doxxx.net> writes:

<snip/>
    >> That is the controversial part. That code will not be needed if
    >> you define two classes instead of one, each using the right
    >> HTTP[S]Connection attribute.

    Gordon> I get what you're saying. Two Transport classes, one for HTTP and
    Gordon> and one for HTTPS. Yeah, I can do that, no problem.

Hmm, I was wrong, now that I've looked at the code
_urllib2_wrappers can even take care of that...

    >> You want to look at test_http among others, but be aware that we
    >> *don't* have a proxy test server, we fake one for test purposes
    >> but I don't think you can reuse it.

    Gordon> Hmm... Why do I think the tests are going to be the hardest part
    Gordon> of all this? ;)

Yeah, that's why I delayed fixing that bug so long :-/

I'll have a simple fix with tests shortly, 

      Vincent



More information about the bazaar mailing list