title: Print raw HTTP request in Flask or WSGI
body: <p>I am debugging a microcontroller I've built which is writing raw HTTP requests line by line.  I am using Flask for my backend and I would like to see the entire request as it appears in this format:</p>
  
  <pre><code>GET / HTTP/1.1
  Content-length: 123
  User-agent: blah
  ...
  </code></pre>
  
  <p>I know Flask is based on WSGI. Is there anyway to get this to work with Flask?</p>