title: Readable debug logging for http requests with spring webclient
body: <p>I'm using Spring reactive WebClient for sending requests to a http server. Inorder to view the underlying request &amp; response that's being sent, I enabled debug logging for <code>reactor.ipc.netty</code> package.</p>
  
  <p>The headers for the outgoing requests can be viewed normally.</p>
  
  <p>Tho I'm sending &amp; receiving plain text over http, the log contains the request &amp; responses in the below format (is it hex?)</p>
  
  <p>I'm not sure how to view the logged data in a easy to understand way. Better yet log the request &amp; response in a understandable way</p>
  
  <p>Here is a snippet of the logged data</p>
  
  <pre><code>         +-------------------------------------------------+
           |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
  +--------+-------------------------------------------------+----------------+
  |00000000| 47 45 54 20 2f 53 65 61 72 63 68 5f 47 43 2e 61 |GET /Search_GC.a|
  |00000010| 73 70 78 20 48 54 54 50 2f 31 2e 31 0d 0a 75 73 |spx HTTP/1.1..us|
  |00000020| 65 72 2d 61 67 65 6e 74 3a 20 52 65 61 63 74 6f |er-agent: Reacto|
  |00000030| 72 4e 65 74 74 79 2f 30 2e 37 2e 32 2e 52 45 4c |rNetty/0.7.2.REL|
  |00000040| 45 41 53 45 0d 0a 68 6f 73 74 3a 20 63 65 6f 6b |EASE..host: ceok|
  |00000050| 61 72 6e 61 74 61 6b 61 2e 6b 61 72 2e 6e 69 63 |arnataka.kar.nic|
  |00000060| 2e 69 6e 0d 0a 61 63 63 65 70 74 3a 20 2a 2f 2a |.in..accept: */*|
  |00000070| 0d 0a 61 63 63 65 70 74 2d 65 6e 63 6f 64 69 6e |..accept-encodin|
  |00000080| 67 3a 20 67 7a 69 70 0d 0a 63 6f 6e 74 65 6e 74 |g: gzip..content|
  |00000090| 2d 6c 65 6e 67 74 68 3a 20 30 0d 0a 0d 0a       |-length: 0....  |
  +--------+-------------------------------------------------+----------------+
  </code></pre>
  
  <p>Found an unanswered question that must be happening because of the same library: <a href="https://stackoverflow.com/questions/44565005/reading-a-httpcontent-that-has-a-pooledunsafedirectbytebuf?rq=1">Reading a HttpContent that has a PooledUnsafeDirectByteBuf</a></p>
  
  <p>Raised an issue <a href="https://github.com/reactor/reactor-netty/issues/233" rel="noreferrer">here</a></p>
  
  <p>There seems to an orthodox view that debugging is not required for reactive clients. This is a completely pointless arguments as we use tools like <code>rest client</code>, <code>postman</code>, <code>curl</code>, <code>httpie</code> &amp; others to send request and view response</p>