#ifndef HTTP_STATIC_H #define HTTP_STATIC_H #include "http_connection.h" #include namespace fs = boost::filesystem; namespace HTTP { //! HTTP Handler serving static files from a directory. class Static { private: fs::path directory_; std::string index_; public: //! Construct Static-handler. Static(fs::path directory, std::string index = "index.html"); //! Handle request. void operator()(Connection::p connection); }; }; #endif