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

<feature> Accessing to connection headers #39

Open
lgg2 opened this issue Dec 31, 2021 · 1 comment
Open

<feature> Accessing to connection headers #39

lgg2 opened this issue Dec 31, 2021 · 1 comment
Labels

Comments

@lgg2
Copy link

lgg2 commented Dec 31, 2021

Hello,

It will be a good option to have access to the header parameters (X-Real_IP, X-....) of the handshaking part to get access to a other data like client IP or an ID in the case of proxy forwarding (NGINX) because later with the ws_getaddress function only get the server IP.

Thanks.

@Theldus
Copy link
Owner

Theldus commented Jan 4, 2022

Hi @lgg2,
Yes, in fact it would be a very interesting feature, and it's something I also wanted to add to wsServer.

I would like to ask how do you think it could be? maybe a hashmap where the header parameters are the keys and the content the value? if so maybe I'll use something like khash for that, as it's pretty lightweight and efficient.

@Theldus Theldus added the feature label Jan 4, 2022
@Theldus Theldus changed the title <feature>Accesing to connection headers <feature> Accessing to connection headers Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants