push
github
Merge bitcoindevkit/rust-esplora-client#66: add http header support 73cc41c8c add http header support (John Cantrell) Pull request description: Technically an end-user could do this themselves because the builders support passing in pre-built ureq/reqwest clients but this makes it a bit easier for them. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced the ability to set custom HTTP headers for requests in both asynchronous and synchronous clients. - Added methods in the `Builder` struct for adding HTTP headers to requests. - **Improvements** - Enhanced error handling with new error variants for invalid HTTP header names and values. - **Tests** - Updated test setup to include custom HTTP headers. - Added a new test case for fetching transactions with specific HTTP headers. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Top commit has no ACKs. Tree-SHA512: 8043b54b1a722a2b4143ffdf1b5a0859146
51 of 63 new or added lines in 3 files covered. (80.95%)
959 of 1134 relevant lines covered (84.57%)
9.47 hits per line