Skip to content

<feature> Accessing to connection headers #39

Open

Description

@lgg2

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.

Activity

  1. Theldus commented on Jan 4, 2022

    @Theldus
    Owner

    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.

  2. changed the title [-]<feature>Accesing to connection headers[/-] [+]<feature> Accessing to connection headers[/+] on Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions