enhanced version of github.com/JoeJErnst/http-client