(maint) Add setting to write http debug out to stderr
This commit adds a puppet setting, http_debug, enabling HTTP request
and responses to be written to stderr. It is disabled by default, and
should remain so in production environments, because it can leak
sensitive information.
If enabled, it displays information like:
opening connection to puppetmaster... opened <- "GET /production/node/node?...\r\n" -> "HTTP/1.1 200 OK \r\n" -> "X-Puppet-Version: 3.6.2\r\n" -> "Content-Type: text/pson\r\n" -> "Server: WEBrick/1.3.1 (Ruby/1.9.3/2014-02-24) OpenSSL/1.0.1e\r\n" -> "Date: Fri, 18 Jul 2014 07:37:41 GMT\r\n" -> "Content-Length: 4202\r\n" -> "Connection: Keep-Alive\r\n" -> "\r\n" reading 4202 bytes... -> "" -> <response_body> read 4202 bytes Conn keep-alive