/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/http_server.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-05-05 16:58:40 UTC
  • mfrom: (6929.11.2 urllib3)
  • Revision ID: breezy.the.bot@gmail.com-20180505165840-3a69fitc2f4n7vf9
Integrate the urllib-specific bits into the main HttpTransport.

Merged from https://code.launchpad.net/~jelmer/brz/urllib-integration/+merge/342487

Show diffs side-by-side

added added

removed removed

Lines of Context:
490
490
        # this is chosen to try to prevent trouble with proxies, weird dns,
491
491
        # etc
492
492
        return self._url_protocol + '://127.0.0.1:1/'
493
 
 
494
 
 
495
 
class HttpServer_urllib(HttpServer):
496
 
    """Subclass of HttpServer that gives http+urllib urls.
497
 
 
498
 
    This is for use in testing: connections to this server will always go
499
 
    through urllib where possible.
500
 
    """
501
 
 
502
 
    # urls returned by this server should require the urllib client impl
503
 
    _url_protocol = 'http+urllib'