Github user zwoop commented on the issue:
https://github.com/apache/trafficserver/pull/1210
Not sure what happened with my final review message, but I'd suggest
looking at dump_headers() in e.g. plugins/background_fetch/headers.cc. It
cleanly dumps all headers into a buffer, which you can then do whatever you
want with (including dumping with TSError()).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---