+ send_response(cl, *response);
+}
+
+void Server::send_response(Client &cl, Response &resp)
+{
+ if(cl.keepalive)
+ resp.set_header("Connection", "keep-alive");
+ cl.sock->write(resp.str());
+ cl.async = false;
+ if(cl.keepalive)
+ {
+ delete cl.request;
+ cl.request = 0;
+ delete cl.response;
+ cl.response = 0;
+ }
+ else