~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Martin Pool
  • Date: 2006-01-13 09:57:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1611.
  • Revision ID: mbp@sourcefrog.net-20060113095713-1fa5912229a3898e
Review updates of pycurl transport

Split them out into 

  bzrlib.transport.http             common base
  bzrlib.transport.http._urllib     pure python
  bzrlib.transport.http._pycurl     calls pycurl

Update to work with robert's nice transport test multiplexer.

Add PyCurlTransport.has() which does just a HEAD request; should be faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
register_lazy_transport(None, 'bzrlib.transport.local', 'LocalTransport')
421
421
register_lazy_transport('file://', 'bzrlib.transport.local', 'LocalTransport')
422
422
register_lazy_transport('sftp://', 'bzrlib.transport.sftp', 'SFTPTransport')
423
 
## register_lazy_transport('http://', 'bzrlib.transport.http', 'HttpTransport')
424
 
## register_lazy_transport('https://', 'bzrlib.transport.http', 'HttpTransport')
425
 
register_lazy_transport('http://', 'bzrlib.transport.pycurlhttp', 'PyCurlTransport')
426
 
register_lazy_transport('https://', 'bzrlib.transport.pycurlhttp', 'PyCurlTransport')
 
423
register_lazy_transport('http://', 'bzrlib.transport.http._urllib', 'HttpTransport')
 
424
register_lazy_transport('https://', 'bzrlib.transport.http._urllib', 'HttpTransport')
 
425
## register_lazy_transport('http://', 'bzrlib.transport.http._pycurl', 'PyCurlTransport')
 
426
## register_lazy_transport('https://', 'bzrlib.transport.http._pycurl', 'PyCurlTransport')
427
427
register_lazy_transport('ftp://', 'bzrlib.transport.ftp', 'FtpTransport')
428
428
register_lazy_transport('aftp://', 'bzrlib.transport.ftp', 'FtpTransport')