The top-level coroutine of the HTTP server.
#include <server.hpp>
Inherits mace::rpc::http::coroutine.
Public Member Functions | |
server (const std::string &address, const std::string &port, boost::function< void(const request &, reply &)> request_handler) | |
void | operator() (boost::system::error_code ec=boost::system::error_code(), std::size_t length=0) |
Perform work associated with the server. |
Definition at line 28 of file server.hpp.
mace::rpc::http::server::server | ( | const std::string & | address, |
const std::string & | port, | ||
boost::function< void(const request &, reply &)> | request_handler | ||
) | [explicit] |
Construct the server to listen on the specified TCP address and port, and serve up files from the given directory.