103
103
register_transport_provider( ) ( and the "lazy" variant )
105
105
This is needed because:
106
a) a single provider can support multiple protocols ( like the ftp
107
provider which supports both the ftp:// and the aftp:// protocols )
108
b) a single protocol can have multiple providers ( like the http://
109
protocol which is supported by both the urllib and pycurl provider )
106
a) a single provider can support multiple protocols (like the ftp
107
provider which supports both the ftp:// and the aftp:// protocols)
108
b) a single protocol can have multiple providers (like the http://
109
protocol which was supported by both the urllib and pycurl providers)
112
112
def register_transport_provider(self, key, obj):
1752
1752
register_netloc=True)
1753
1753
register_lazy_transport(b'https+urllib://', 'breezy.transport.http._urllib',
1754
1754
'HttpTransport_urllib')
1755
register_transport_proto(b'http+pycurl://',
1756
# help="Read-only access of branches exported on the web."
1757
register_netloc=True)
1758
register_lazy_transport(b'http+pycurl://', 'breezy.transport.http._pycurl',
1760
register_transport_proto(b'https+pycurl://',
1761
# help="Read-only access of branches exported on the web using SSL."
1762
register_netloc=True)
1763
register_lazy_transport(b'https+pycurl://', 'breezy.transport.http._pycurl',
1765
1755
# Default http transports (last declared wins (if it can be imported))
1766
1756
register_transport_proto(b'http://',
1767
1757
help="Read-only access of branches exported on the web.")
1768
1758
register_transport_proto(b'https://',
1769
1759
help="Read-only access of branches exported on the web using SSL.")
1770
1760
# The default http implementation is urllib
1771
register_lazy_transport(b'http://', 'breezy.transport.http._pycurl',
1773
1761
register_lazy_transport(b'http://', 'breezy.transport.http._urllib',
1774
1762
'HttpTransport_urllib')
1775
register_lazy_transport(b'https://', 'breezy.transport.http._pycurl',
1777
1763
register_lazy_transport(b'https://', 'breezy.transport.http._urllib',
1778
1764
'HttpTransport_urllib')