11 #ifndef HTTP_SERVER2_REQUEST_HANDLER_HPP 12 #define HTTP_SERVER2_REQUEST_HANDLER_HPP 15 #include <boost/noncopyable.hpp> 25 :
private boost::noncopyable
36 std::string doc_root_;
40 static bool url_decode(
const std::string& in, std::string& out);
46 #endif // HTTP_SERVER2_REQUEST_HANDLER_HPP The common handler for all incoming requests.
A request received from a client.
request_handler(const std::string &doc_root)
Construct with a directory containing files to be served.
void handle_request(const request &req, reply &rep)
Handle a request and produce a reply.
A reply to be sent to a client.