Skip to content

Replace reqwest with bitreq HTTP client#1567

Closed
crodas wants to merge 2 commits intocashubtc:mainfrom
crodas:feature/use-bitreq
Closed

Replace reqwest with bitreq HTTP client#1567
crodas wants to merge 2 commits intocashubtc:mainfrom
crodas:feature/use-bitreq

Conversation

@crodas
Copy link
Copy Markdown
Collaborator

@crodas crodas commented Jan 23, 2026

Description

Fixes #1543

Migrate the codebase from reqwest to bitreq for HTTP requests. This affects the wallet transport layer, OIDC client, CLI commands, and integration tests.

  • Replace reqwest::Client with bitreq::Client across all crates
  • Update HTTP request/response handling to use bitreq API
  • Remove reqwest and serde_urlencoded from workspace dependencies
  • Use url::form_urlencoded for URL encoding instead of serde_urlencoded
  • Adapt proxy configuration to bitreq's proxy API

TODO:

  • Do something with accept_invalid_certs

Notes to the reviewers


Suggested CHANGELOG Updates

CHANGED

ADDED

REMOVED

FIXED


Checklist

@github-project-automation github-project-automation bot moved this to Backlog in CDK Jan 23, 2026
@crodas crodas requested a review from thesimplekid January 23, 2026 18:02
@crodas crodas self-assigned this Jan 23, 2026
@crodas crodas force-pushed the feature/use-bitreq branch 4 times, most recently from 5b71631 to d117579 Compare January 23, 2026 22:41
Migrate the codebase from reqwest to bitreq for HTTP requests. This
affects the wallet transport layer, OIDC client, CLI commands, and
integration tests.

- Replace reqwest::Client with bitreq::Client across all crates
- Update HTTP request/response handling to use bitreq API
- Remove reqwest and serde_urlencoded from workspace dependencies
- Use url::form_urlencoded for URL encoding instead of serde_urlencoded
- Adapt proxy configuration to bitreq's proxy API

TODO:
- [ ] Do something with accept_invalid_certs
@crodas crodas force-pushed the feature/use-bitreq branch from d117579 to 0733ae3 Compare January 24, 2026 00:56
@crodas crodas force-pushed the feature/use-bitreq branch from 2c65cf2 to 405f2f7 Compare January 24, 2026 04:30
@thesimplekid
Copy link
Copy Markdown
Collaborator

going to mark this as draft as we still have a few open questions, mostly around wasm support.

@thesimplekid thesimplekid marked this pull request as draft January 26, 2026 10:15
@crodas
Copy link
Copy Markdown
Collaborator Author

crodas commented Feb 3, 2026

Closed until #1573 is merged

@crodas crodas closed this Feb 3, 2026
@github-project-automation github-project-automation bot moved this from Backlog to Done in CDK Feb 3, 2026
@ye0man
Copy link
Copy Markdown
Collaborator

ye0man commented Mar 31, 2026

@crodas blocker removed after #1573 was merged?

@thesimplekid
Copy link
Copy Markdown
Collaborator

Superseded by #1608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Review if we can remove reqwest for bitreq

3 participants