Skip to content

feat(bitreq): Add Client::with_auth#78

Merged
ValuedMammal merged 4 commits into
bitcoindevkit:masterfrom
ValuedMammal:feat/bitreq-with-auth
Jul 10, 2026
Merged

feat(bitreq): Add Client::with_auth#78
ValuedMammal merged 4 commits into
bitcoindevkit:masterfrom
ValuedMammal:feat/bitreq-with-auth

Conversation

@ValuedMammal

@ValuedMammal ValuedMammal commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Description

Add Client::with_auth(url, auth) as a convenience constructor for the bitreq client. Previously, callers were required to supply an explicit timeout parameter via with_auth_timeout. The new method defaults to a 15-second timeout (DEFAULT_TIMEOUT) and delegates to with_auth_timeout, so existing code is unaffected.

Clean up tests/testenv.rs doc comments, and reorder sub-commands of the pre-push recipe.

Bump the version in Cargo.toml to 0.2.0

Changelog notice

Added

  • bitreq::Client::with_auth constructor using a default 15-second timeout

Changed

  • Bump version to 0.2.0

`with_auth` calls `with_auth_timeout` using a default
15 second timeout.
Removed `lock` from pre-push recipe, as `cargo rbmt lock` doesn't
need to be called before every push to a remote branch, and doing
so may add noise to a diff that otherwise doesn't touch the deps in
Cargo.toml. However developers must remember to do
`cargo rbmt lock` whenever deliberately changing or updating
dependencies in a given commit.
@ValuedMammal
ValuedMammal merged commit 280ebac into bitcoindevkit:master Jul 10, 2026
9 checks passed
@ValuedMammal
ValuedMammal deleted the feat/bitreq-with-auth branch July 10, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant