nit
nit copied to clipboard
nitcorn: add client IP in the HTTPRequest
There is a lot of information, but the not the IP. How can we geoip trace people?
Would the data in HttpServer::remote_address do the trick?
I could copy it into the request... or provide a back link to the connection server, like in prepare_respon_and_close.
Oh. I did not see it. I think that copying into the request object make sense as I looked into HTTPRequest where other (parsed) information is available.
Importing nitcorn::log will log all of it for you, you can also redef prepare_respond_and_close in your Action to log it. But I'll take a look to move it in the request.