HTTPServer/HTTPService.h
2019-05-30 14:16:57 -07:00

32 lines
540 B
C++

#ifndef __HTTPService_h__
#define __HTTPService_h__
#include "Service.h"
#include "HTTPSessions.h"
#include "PageList.h"
#include "Exception.h"
#include "HTTPHandler.h"
namespace http {
class HTTPService : public core::Service {
public:
HTTPService() {
commands.add(getHandler, "GET");
commands.add(postHandler, "POST");
}
HTTPSessions httpSessions;
PageList pageList;
private:
HTTPHandler getHandler;
HTTPHandler postHandler;
};
}
#endif