[bitcoin/bitcoin] Dump HTTP request headers (#13992)

> But more importantly, IMO the changes where non-const member functions have been changed to `const` member function are useful.

@251Labs see #14006.