Skip to content

Allow overriding reqwest Client#334

Merged
Gankra merged 1 commit intoaxodotdev:mainfrom
konstin:konsti/expose-client
Feb 20, 2026
Merged

Allow overriding reqwest Client#334
Gankra merged 1 commit intoaxodotdev:mainfrom
konstin:konsti/expose-client

Conversation

@konstin
Copy link
Copy Markdown
Contributor

@konstin konstin commented Feb 12, 2026

This allows setting a pre-configured reqwest Client with alternative settings, such as TLS certs.

This allows setting a pre-configured reqwest Client with alternative settings, such as TLS certs.
@konstin konstin force-pushed the konsti/expose-client branch from a9bf2e0 to 3f05339 Compare February 12, 2026 09:13
tokens: AuthorizationTokens::default(),
always_update: false,
modify_path: true,
client: reqwest::Client::new(),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it a problem for us to make one by default and then immediately throw it out when they set the client? Genuinely unsure. Probably fine?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It can be a performance concern, iirc loading certs on mac is slow, I'm sure how to do this better without bigger changes (which may be required, but I'd need guidance on what we want to change)

@Gankra Gankra merged commit a013f84 into axodotdev:main Feb 20, 2026
12 checks passed
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.

2 participants