src/HTTPServer.cpp
branchv_0
changeset 5 121981e6bd54
parent 4 37a86904145c
child 8 90990c8b6aef
--- a/src/HTTPServer.cpp	Sat Apr 09 17:50:46 2022 +0200
+++ b/src/HTTPServer.cpp	Sat Apr 16 02:43:50 2022 +0200
@@ -56,6 +56,10 @@
 			HTTPServer::Request request;
 			request.method = method;
 			request.url = url;
+
+			// TODO: return also client IP address etc.
+			// const MHD_ConnectionInfo* connetionInfo = MHD_get_connection_info(connection, MHD_ConnectionInfoType::MHD_CONNECTION_INFO_CLIENT_ADDRESS);
+
 			// FIXME: request.body = ...
 			// FIXME: multiple calls for one request
 			const HTTPServer::Response response = impl->requestHandler->handle(request);