16#include <condition_variable>
78 std::string ipAddress_;
79 std::thread serverThread_;
82 std::condition_variable cv_;
Defines the Request class, representing a network request.
A class to represent a network request.
Definition Request.h:25
A class that represents a web server handling HTTP requests.
Definition WebServer.h:27
~WebServer()
Destructor to clean up resources used by the WebServer.
Definition WebServer.cpp:53
void assignRequest(const Request &req)
Assigns a request to the web server for processing.
Definition WebServer.cpp:75
bool hasRequest()
Checks if the server currently has a request assigned.
Definition WebServer.cpp:141
void start()
Starts the web server in a separate thread.
Definition WebServer.cpp:64
void printDetails()
Prints details about the web server's status and configuration.
Definition WebServer.cpp:150
void stop()
Stops the web server and joins the server thread.
Definition WebServer.cpp:87
bool isRunning()
Checks if the web server is currently running.
Definition WebServer.cpp:132
std::mutex coutMutex_
Definition main.cpp:17