net.http.server: Add new API to get HTTP request from a connection
This information is sometimes necessary in the context where we have a
connection that we know (or believe to be) associated with an incoming HTTP
request.
For example, it can be used to retrieve the IP address of a request (which may
differ from the IP address of the connection, due to X-Forwarded-For and co).
Thanks to the Jitsi team for highlighting this gap in the API.
For full information on our dependencies, version requirements, and
where to find them, see https://prosody.im/doc/depends
If you have luarocks available on your platform, install the following:
- luaexpat
- luasocket
- luafilesystem
- luasec