We should have a CLI option, similar to the Puppet --http_debug option, that shows HTTP debug logs from requests made through the HTTP resolver.
This is implemented in Puppet using the following method: https://apidock.com/ruby/Net/HTTP/set_debug_output
Relevant code in Puppet: https://github.com/puppetlabs/puppet/blob/3aecb85fd55235d0d5f98170d3268a756f000a17/lib/puppet/http/factory.rb#L46