title: How to capture HTTP request / response headers with mitmproxy?
body: <p>I have been able to capture the HTTP(s) traffic from a smartphone and also stored this traffic using mitmdump using the command </p>
  
  <pre><code>mitmdump -w outfile
  </code></pre>
  
  <p>This seems to dump the <code>HTTP body</code> along with the <code>headers</code> as well. I am interested in capturing only the headers, prefarably as a single csv row (or json string). How can I do that?</p>