32 lines
548 B
C++
32 lines
548 B
C++
#ifndef __HTTPService_h__
|
|
#define __HTTPService_h__
|
|
|
|
#include "Service.h"
|
|
#include "HTTPSessions.h"
|
|
#include "HTTPPageList.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;
|
|
HTTPPageList pageList;
|
|
|
|
private:
|
|
HTTPHandler getHandler;
|
|
HTTPHandler postHandler;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|