AlexanderJDupree / Bridges

HTTP/S Server and Library for C++
MIT License
2 stars 0 forks source link

[DISCUSSION] - Prototype Request Handlers #7

Open AlexanderJDupree opened 4 years ago

AlexanderJDupree commented 4 years ago

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.