def preview(self):
    fd, fname = tempfile.mkstemp()
    with os.fdopen(fd, 'w') as f:
      f.write(self.content)
    webbrowser.open_new_tab(fname)
Preview the reponse in your browser.
dataset/ETHPy150Open tweksteen/burst/burst/http.py/Response.preview