@brief register handler @param method the method @param path the path @param handler the handler
| 560 | ///@param path the path |
| 561 | ///@param handler the handler |
| 562 | void WebServer::register_handler(const std::string& method, const std::string& path, RequestHandler handler) { |
| 563 | std::string key = method + " " + path; |
| 564 | routes[key] = handler; |
| 565 | } |
| 566 | |
| 567 | ///@brief do accept |
| 568 | void WebServer::do_accept() { |