Class Listener
Defined in File http_server.hpp
Base Type
public std::enable_shared_from_this< Listener >
-
class Listener : public std::enable_shared_from_this<Listener>
A class that listens for incoming HTTP requests.
Constructed by the HttpServer class and should not be used directly.
Public Functions
-
Listener(boost::asio::io_context &io_context, const std::string &bind_address, unsigned short port, std::vector<HttpEndpoint> endpoints, std::size_t max_payload_size, std::chrono::seconds request_timeout)
-
~Listener() = default
-
void run()
-
void stop()
-
bool is_running() const
-
Listener(boost::asio::io_context &io_context, const std::string &bind_address, unsigned short port, std::vector<HttpEndpoint> endpoints, std::size_t max_payload_size, std::chrono::seconds request_timeout)