Skip to content

feature: Allow to customize reqwest client builder#73

Open
luis-araujo-dev wants to merge 1 commit intotypesense:mainfrom
luis-araujo-dev:feature/reqwest-client-builder
Open

feature: Allow to customize reqwest client builder#73
luis-araujo-dev wants to merge 1 commit intotypesense:mainfrom
luis-araujo-dev:feature/reqwest-client-builder

Conversation

@luis-araujo-dev
Copy link

Change Summary

After taking a look into #67, I created this PR with the same goal, following maintainers guidance.
This PR allows to customize the reqwest client builder by each node, by using a closure.
I left the default connection timeout value around for non-WASM, but used connection_timeout instead of timeout since it looked to be what's desired and expected.

PR Checklist

@luis-araujo-dev
Copy link
Author

@RoDmitry will you be able to take a look at the PR?
Please let me know if something needs to be changed in order to have it merged.

NodeConfig::new(format!("https://localhost:{}", server_addr.port())).http_builder(
move |builder| {
builder
.add_root_certificate(client_cert.clone())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is cloning of client_cert required?

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