46
45
client = _SmartClient(medium)
47
46
# Use call_expecting_body (even though we don't expect a body) so that
48
47
# we can see the response headers (if any) via the handler object.
50
49
handler.cancel_read_body()
51
50
self.outf.write('Response: %r\n' % (response,))
52
51
if getattr(handler, 'headers', None) is not None: