rust-cookbook
rust-cookbook copied to clipboard
596 headers
I've made a few changed to the original recipe:
- made the usage of
error_chainvisible to account for #563 - switch to the synchronous reqwest client to simplify the recipe
- removed the authorization header since this is now handled via reqwest::RequestBuilder::bearer_auth
- got rid of the
hyper::header!macro - gave the
X-Powered-Byheader a more generic/sterile value - added missing links
fixes #596
Please let me now if you'd like to see any changes.
The decision I'm least confident/happy about/with is the ad-hoc creation of the custom header.