11 #ifndef HTTP_SERVER4_FILE_HANDLER_HPP 12 #define HTTP_SERVER4_FILE_HANDLER_HPP 34 std::string doc_root_;
38 static bool url_decode(
const std::string& in, std::string& out);
44 #endif // HTTP_SERVER4_FILE_HANDLER_HPP void operator()(const request &req, reply &rep)
Handle a request and produce a reply.
A request received from a client.
file_handler(const std::string &doc_root)
Construct with a directory containing files to be served.
The common handler for all incoming requests.
A reply to be sent to a client.