title: How to decode nock recorded response
body: <p>How to ad-hoc decode/uncompress the output produced by the nock recorder so we can see the response as text?  I guess we do not understand if the response is gzipped and/or encoded</p>
  <p>The object works find when we load it into nock, and our tests are behaving as we expect.  To see what the API produced, we are having to put logging statements in the implementation file.</p>
  <p>We are recording and saving the JSON the responses:</p>
  <pre><code>nock.recorder.rec({output_objects: true, dont_print: true});
  JSON.stringify(nock.recorder.play())
  </code></pre>
  <p>And our file looks like:</p>
  <pre class="lang-json prettyprint-override"><code>[
    {
      &quot;scope&quot;: &quot;https://some.api.com:443&quot;,
      &quot;method&quot;: &quot;POST&quot;,
      &quot;path&quot;: &quot;/auth?key=some_key&quot;,
      &quot;body&quot;: {
        &quot;logonId&quot;: &quot;user@api.com&quot;,
        &quot;logonPassword&quot;: &quot;secret&quot;
      },
      &quot;status&quot;: 400,
      &quot;response&quot;: [
        &quot;1f8b0800000000000000458cbd6ac34010067b3fc5c735691263bb741344ec42f827420a492916692d1d9cb461f71c218cdf3d97266e6786b92d00c7aaa205290d1c59cd6d71bb3fff8b376939a1cd6abd7ac003cf89b97a5f96757efecc8ef9aede9fb2fc586455f5f55eeedca33db119757f0f5704266334a2ca4d44ec19170941263f76f06657b62dd6cb2af919ec9357cc7255f0cb403e4014df643689b6687d3b3e450c149b1e534f1113a3a71f868cb8f8c04b7ca48b8fa08efcf8ea16f75fa1776d91ee000000&quot;
      ],
      &quot;headers&quot;: {
        &quot;cache-control&quot;: &quot;no-store, no-cache, must-revalidate&quot;,
        &quot;content-encoding&quot;: &quot;gzip&quot;,
        &quot;content-type&quot;: &quot;application/json&quot;,
        &quot;transfer-encoding&quot;: &quot;chunked&quot;,
        &quot;connection&quot;: &quot;Close&quot;
      }
    }
  ]
  </code></pre>