Skip to content

client: add tls_server_name option#3019

Draft
mcluseau wants to merge 1 commit into
seanmonstar:masterfrom
mcluseau:master
Draft

client: add tls_server_name option#3019
mcluseau wants to merge 1 commit into
seanmonstar:masterfrom
mcluseau:master

Conversation

@mcluseau
Copy link
Copy Markdown

Hi,

it seems using a custom TLS ServerName is supported by both rustls and native-tls.

This is my attempt to provide an option to set it at the client's level. I didn't see any TLS-specific options in Request, it may be better there instead. I'll just let you tell me :)

@seanmonstar
Copy link
Copy Markdown
Owner

Thanks! I wonder, I suspect people would need a different server name per connection, not the same one for every connection, ya? That feels like it'd be more complicated to expose...

@mcluseau
Copy link
Copy Markdown
Author

my rationale was that it usually is in a TLS config anyway (from what remember of my golang days), people can just use another Client instance.

@mcluseau
Copy link
Copy Markdown
Author

but I'm 100% ok to go the Request way :)

@mcluseau mcluseau marked this pull request as draft April 22, 2026 16:42
@mcluseau
Copy link
Copy Markdown
Author

The rabbit hole is deeper, I have to first make a change in hyper_tls.

@mcluseau mcluseau force-pushed the master branch 2 times, most recently from 7f310cd to 7913bd1 Compare April 22, 2026 20:36
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