Skip to content

[rust] Reuse common http client in Selenium Manager#11449

Merged
bonigarcia merged 3 commits intotrunkfrom
se_mgr_http_client
Jan 10, 2023
Merged

[rust] Reuse common http client in Selenium Manager#11449
bonigarcia merged 3 commits intotrunkfrom
se_mgr_http_client

Conversation

@bonigarcia
Copy link
Copy Markdown
Member

Description

This PR creates a shared instance of the HTTP client used in the Rust logic of Selenium Manager, using rusttls instead of native TLS (to prevent #11291), and accepting self-signed certificates (to prevent #11406).

Motivation and Context

This PR will prevent issues like #11406 in the upcoming releases of Selenium Manager. Moreover, the shared HTTP client will be helpful in Selenium Manager M3 (e.g., for proxy setup).

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Copy Markdown
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

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

Just a comment.

Comment thread rust/src/chrome.rs
@bonigarcia bonigarcia merged commit 937cbaa into trunk Jan 10, 2023
@bonigarcia bonigarcia deleted the se_mgr_http_client branch January 10, 2023 08:15
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