wsServer icon indicating copy to clipboard operation
wsServer copied to clipboard

<feature> Accessing to connection headers

Open lgg2 opened this issue 2 years ago • 1 comments

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.

lgg2 avatar Dec 31 '21 18:12 lgg2

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 avatar Jan 04 '22 03:01 Theldus