Last step after parsing the HTTP request into a Response object we need to evaluate the request method (GET/POST/PUT. . . ) and dispatch the request to the appropriate handler.
These handlers should be conducted on separate threads. Probably somewhere in Server::__listen method we would immediately create a thread to handle the parsing and handling of request whenever we successfully connect with a client via the accept() system call.
Last step after parsing the HTTP request into a Response object we need to evaluate the request method (GET/POST/PUT. . . ) and dispatch the request to the appropriate handler.
These handlers should be conducted on separate threads. Probably somewhere in Server::__listen method we would immediately create a thread to handle the parsing and handling of request whenever we successfully connect with a client via the
accept()
system call.