/home/barant/Documents/Development/BMASockets/BMAHTTPServer.h
#ifndef __BMAHTTPServer_h__
#define __BMAHTTPServer_h__
#include "includes"
#include "BMATCPServerSocket.h"
class BMAHTTPRequestHandler;
class BMAEPoll;
class BMAHTTPServer : public BMATCPServerSocket {
public:
BMAHTTPServer(BMAEPoll &ePoll, std::string url, short int port, std::string commandName);
~BMAHTTPServer();
void registerHandler(std::string path, BMAHTTPRequestHandler &requestHandler);
void unregisterHandler(BMAHTTPRequestHandler &requestHandler);
BMAHTTPRequestHandler * getRequestHandler(std::string path);
std::map<std::string, BMAHTTPRequestHandler *> requestHandlers;
protected:
BMASession * getSocketAccept() override;
private:
};
#endif
BMAHTTPServer
Definition: BMAHTTPServer.h:9
BMATCPServerSocket
Definition: BMATCPServerSocket.h:20
BMAEPoll
Definition: BMAEPoll.h:29
BMAHTTPRequestHandler
Definition: BMAHTTPRequestHandler.h:6
BMASession
Definition: BMASession.h:18
BMAHTTPServer::getSocketAccept
BMASession * getSocketAccept() override
Definition: BMAHTTPServer.cpp:13