title: Rails - Dump Request header gives Cant dump anonymous module
body: <p>How can I dump the contents of the request headers in rails?</p>
  
  <p>I tried <code>puts YAML::dump(request.headers)</code> but I'm getting the error </p>
  
  <blockquote>
    <p>can't dump anonymous module</p>
  </blockquote>
  
  <p>. Also tried <code>logger.info request.headers.env</code> but Im getting huge content. I just need to know what's sent in the header. How can this be easily done?</p>