11 #ifndef HTTP_REQUEST_HANDLER_HPP 12 #define HTTP_REQUEST_HANDLER_HPP 37 std::string doc_root_;
41 static bool url_decode(
const std::string& in, std::string& out);
47 #endif // HTTP_REQUEST_HANDLER_HPP void handle_request(const request &req, reply &rep)
Handle a request and produce a reply.
request_handler(const std::string &doc_root)
Construct with a directory containing files to be served.
request_handler & operator=(const request_handler &)=delete