~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2485.8.41.

  • Committer: Vincent Ladeuil
  • Date: 2007-06-07 11:36:27 UTC
  • mto: (2485.8.44 bzr.connection.sharing)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070607113627-2fudc24suivry84k
Finish http refactoring. Test suite passing.

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib.__init__): Simplified.
(HttpTransport_urllib._remote_path): New method. Get rid of
authinfo only for urllib2 purposes.
(HttpTransport_urllib._perform): Rewrite the connection sync
between transport and request.
(HttpTransport_urllib._get, HttpTransport_urllib._get,
HttpTransport_urllib._post): Updated for the new connection handling.

* bzrlib/transport/http/_pycurl.py:
(PyCurlTransport.__init__): Simplified.
(PyCurlTransport._get_curl): New method.
(PyCurlTransport.has, PyCurlTransport._get_full)
(PyCurlTransport._get_ranged, PyCurlTransport._post): Use _get_curl().

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: