Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(http): add information on request to know it it's from tls or not #1174

Closed
wants to merge 1 commit into from

Conversation

joelwurtz
Copy link
Contributor

@joelwurtz joelwurtz commented Jan 9, 2025

This PR aims to be able for an user to know if a request comes from a secure context or not.

There is no way to know actually when listening on both secure and not secure context if a incoming request is using tls or not. I added this information to the Extensions part of the request, so now an user can, per exemple, automatically redirect an user to https if coming from http.

EDIT : I also updated the client to be able to force using a secure context or not and avoid calling acceptor if not in a secure context

@joelwurtz
Copy link
Contributor Author

Close in favor of #1200

@joelwurtz joelwurtz closed this Feb 5, 2025
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.

1 participant