Skip to content

Switch ldk-server-client from reqwest to bitreq#127

Draft
Anyitechs wants to merge 1 commit intolightningdevkit:mainfrom
Anyitechs:drop-reqwest
Draft

Switch ldk-server-client from reqwest to bitreq#127
Anyitechs wants to merge 1 commit intolightningdevkit:mainfrom
Anyitechs:drop-reqwest

Conversation

@Anyitechs
Copy link
Contributor

This will switch ldk-server-client from using the reqwest dep to using the ecosystem maintained bitreq crate.

Meanwhile, this will be in draft till rust-bitcoin/corepc#502 hopefully lands and released, so we can bring back ability to load custom root certificates.

Closes #119

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Feb 16, 2026

👋 Thanks for assigning @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@benthecarman benthecarman self-requested a review February 16, 2026 18:28
@ldk-reviews-bot
Copy link

🔔 1st Reminder

Hey @benthecarman! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

Copy link
Collaborator

@benthecarman benthecarman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to hold off until ldk and ldk node have switched over for a clean break

LdkServerError::new(InternalError, format!("Failed to read response body: {}", e))
})?;
let status_code = response.status_code;
let is_success_status_code = || -> bool { (200..300).contains(&status_code) };
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a function?

};

const APPLICATION_OCTET_STREAM: &str = "application/octet-stream";
const MAX_CACHED_CONNECTIONS: usize = 10;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this what they're doing in corepc? I feel like this could be a lot lower. Not a huge deal though

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.

Switch ldk-server-client from reqwest to bitreq

3 participants

Comments