+ self.wview.connect('resource-load-started', self.log_resources)
+
+ if html:
+ self.wview.load_html(html, uri)
+ else:
+ self.wview.load_uri(uri)
+
+ def log_resources(self, webview, resource, request):
+ if self.verbose > 1:
+ print('%s for resource %s' % (request.get_http_method() or 'Request', resource.get_uri()), file=stderr)