~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_pycurl.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-24 18:50:51 UTC
  • mfrom: (3956.2.2 1.12-network-io)
  • Revision ID: pqm@pqm.ubuntu.com-20090124185051-8oryvqq68n6repso
(jam) Add Transport._report_activity support to HTTP transports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
                                          'Server return code %d'
246
246
                                          % curl.getinfo(pycurl.HTTP_CODE))
247
247
        msg = self._parse_headers(header)
248
 
        return code, response.handle_response(abspath, code, msg, data)
 
248
        return code, response.handle_response(abspath, code, msg, data,
 
249
            report_activity=self._report_activity)
249
250
 
250
251
    def _parse_headers(self, status_and_headers):
251
252
        """Transform the headers provided by curl into an HTTPMessage"""
285
286
        data.seek(0)
286
287
        code = curl.getinfo(pycurl.HTTP_CODE)
287
288
        msg = self._parse_headers(header)
288
 
        return code, response.handle_response(abspath, code, msg, data)
 
289
        return code, response.handle_response(abspath, code, msg, data,
 
290
            report_activity=self._report_activity)
 
291
 
289
292
 
290
293
    def _raise_curl_http_error(self, curl, info=None):
291
294
        code = curl.getinfo(pycurl.HTTP_CODE)