// This function is called when user types in his browser http://127.0.0.1:8080/foo static private void UriHandler(MongooseConnection conn, MongooseRequestInfo ri) { conn.write("HTTP/1.1 200 OK\r\n\r\n"); conn.write("Hello from C#!\n"); conn.write("Your user-agent is: " + conn.get_header("User-Agent") + "\n"); }