~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_urllib.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:
126
126
            raise errors.InvalidHttpRange(abspath, range_header,
127
127
                                          'Server return code %d' % code)
128
128
 
129
 
        data = handle_response(abspath, code, response.info(), response)
 
129
        data = handle_response(abspath, code, response.info(), response,
 
130
            report_activity=self._report_activity)
130
131
        return code, data
131
132
 
132
133
    def _post(self, body_bytes):
136
137
        response = self._perform(Request('POST', abspath, body_bytes,
137
138
                                         accepted_errors=[200, 403]))
138
139
        code = response.code
139
 
        data = handle_response(abspath, code, response.info(), response)
 
140
        data = handle_response(abspath, code, response.info(), response,
 
141
            report_activity=self._report_activity)
140
142
        return code, data
141
143
 
142
144
    def _head(self, relpath):