Class HttpServer

Inheritance Relationships

Base Type

  • private boost::noncopyable

Class Documentation

class async_web_server_cpp::HttpServer : private boost::noncopyable

The HttpServer is an implementation of a HTTP server that serves http request from a given port The server maintains a pool of threads to use to serve requests. Each request is dispatched to the given request handler to be handled.

Public Functions

HttpServer(const std::string &address, const std::string &port, HttpServerRequestHandler request_handler, std::size_t thread_pool_size)
~HttpServer()
void run()
void stop()