Skip to content

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

Closed
joelwurtz wants to merge 1 commit into
HFQR:mainfrom
joelwurtz:feat/identify-secure
Closed

feat(http): add information on request to know it it's from tls or not#1174
joelwurtz wants to merge 1 commit into
HFQR:mainfrom
joelwurtz:feat/identify-secure

Conversation

@joelwurtz
Copy link
Copy Markdown
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
Copy Markdown
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