Use the http::server3::server class
developThe http::server3::server class provides a high-level interface for running an HTTP server. It listens on a specified TCP address and port, serves files from a document root, and manages a thread pool to handle asynchronous operations via boost::asio::io_context.
To use the server:
- Instantiate the
serverwith the desiredaddress,port,doc_root(the directory from which to serve files), andthread_pool_size. - Call the
run()method to start the server'sio_contextloop.